diff options
| author | Alp Toker <alp@nuanti.com> | 2014-01-20 00:23:47 +0000 |
|---|---|---|
| committer | Alp Toker <alp@nuanti.com> | 2014-01-20 00:23:47 +0000 |
| commit | 410b2d82d38b662d1873a3e04acdabe2d420ab12 (patch) | |
| tree | f78c3944c4a5fcd5b2bafb40984e450b5e89f05f /lib/CodeGen/CGExprAgg.cpp | |
| parent | 919d683487ea4359392fad062bcfd684b484c936 (diff) | |
| download | clang-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
