summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2013-10-17 19:12:03 +0000
committerAlp Toker <alp@nuanti.com>2013-10-17 19:12:03 +0000
commitbb81f880aa77cfd09dedfc72a9b87262889ae75c (patch)
treeca622d101ca9d604c169872973967e5d9022442f /lib/CodeGen/CGExpr.cpp
parent52f717eba7eff69c97d64de5e3669f4a5ee57d5c (diff)
downloadclang-bb81f880aa77cfd09dedfc72a9b87262889ae75c.tar.gz
clang-bb81f880aa77cfd09dedfc72a9b87262889ae75c.tar.bz2
clang-bb81f880aa77cfd09dedfc72a9b87262889ae75c.tar.xz
Fix missed exception spec checks and crashes
Delayed exception specification checking for defaulted members and virtual destructors are both susceptible to mutation during iteration so we need to process the worklists fully. This resolves both accepts-invalid and rejects-valid issues and moreover fixes potential invalid memory access as the contents of the vectors change during iteration and recursive template instantiation. This patch also adds two assertions at end of TU to ensure no specs are left unchecked as was happenning before the fix, plus a test case from Marshall Clow for the defaulted member crash extracted from the libcxx headers. Reviewed by Richard Smith. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions