summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-20 00:23:47 +0000
committerAlp Toker <alp@nuanti.com>2014-01-20 00:23:47 +0000
commit410b2d82d38b662d1873a3e04acdabe2d420ab12 (patch)
treef78c3944c4a5fcd5b2bafb40984e450b5e89f05f /lib/CodeGen/CGExprAgg.cpp
parent919d683487ea4359392fad062bcfd684b484c936 (diff)
downloadclang-410b2d82d38b662d1873a3e04acdabe2d420ab12.tar.gz
clang-410b2d82d38b662d1873a3e04acdabe2d420ab12.tar.bz2
clang-410b2d82d38b662d1873a3e04acdabe2d420ab12.tar.xz
Fix nothrow trait with multiple default constructors
Check all default ctors, not just the first one we see. This brings __has_nothrow_constructor() in line with the other unary type traits. A C++ class can have multiple default constructors but clang was only checking the first one written, presumably due to ambiguity in the GNU specification. MSVC has the same bug, while g++ has the correct implementation which we now match. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
0 files changed, 0 insertions, 0 deletions