aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/MathExtras.cpp
diff options
context:
space:
mode:
authorBen Langmuir <blangmuir@apple.com>2014-09-26 15:27:29 +0000
committerBen Langmuir <blangmuir@apple.com>2014-09-26 15:27:29 +0000
commit11eab6120d9e50512da6b39dc9c6c60b4ca722ce (patch)
tree83e8e46d787be5871edb6b9363b63c07cd186043 /llvm/lib/Support/MathExtras.cpp
parentc2e0427b940c84195b65e96e8de35bc4e37353e8 (diff)
downloadllvm-11eab6120d9e50512da6b39dc9c6c60b4ca722ce.zip
llvm-11eab6120d9e50512da6b39dc9c6c60b4ca722ce.tar.gz
llvm-11eab6120d9e50512da6b39dc9c6c60b4ca722ce.tar.bz2
Fix an assertion failure trying to emit a trivial destructor in ObjC++
If a base class declares a destructor, we will add the implicit destructor for the subclass in ActOnFields -> AddImplicitlyDeclaredMembersToClass But in Objective C++, we did not compute whether we have a trivial destructor until after that in CXXRecordDecl::completeDefinition() This was leading to a mismatch between the class, which thought it had no trivial destructor, and the CXXDestructorDecl, which considered itself trivial. It turns out the reason we delayed setting this until completeDefinition() was for a warning that has since been removed as part of -Warc-abi, so we just do it eagerly now. llvm-svn: 218520
Diffstat (limited to 'llvm/lib/Support/MathExtras.cpp')
0 files changed, 0 insertions, 0 deletions