]> granicus.if.org Git - clang/commit
[MS] Mark default args of exported default constructors as used
authorReid Kleckner <rnk@google.com>
Mon, 9 Jan 2017 17:27:17 +0000 (17:27 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 9 Jan 2017 17:27:17 +0000 (17:27 +0000)
commit0982ba044f48b8d0658cdd7ceeacee0b7a614a88
tree1a672af24d4943829e76f3e3eb67dd51b45c39a0
parentf912c0c031592a6b92b02e86a6b9eee4842b316f
[MS] Mark default args of exported default constructors as used

Fixes a regression introduced in r291045, which would lead to link
errors. While we should no longer encounter unparsed or uninstantiated
default arguments in this codepath, we still need to call
CheckCXXDefaultArgExpr to mark the default argument expressions as
ODR-used.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291453 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/CodeGenCXX/dllexport-ctor-closure.cpp