summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2013-10-18 05:54:19 +0000
committerAlp Toker <alp@nuanti.com>2013-10-18 05:54:19 +0000
commit08235661cf457978ba4645ec8e22697aebabe4fa (patch)
tree438dd235e81a695a5950dff8d4384da528a6cb89 /lib/CodeGen/CGExpr.cpp
parente3db9c86ac8363e3bfd5bdd34eee3eae620a9e89 (diff)
downloadclang-08235661cf457978ba4645ec8e22697aebabe4fa.tar.gz
clang-08235661cf457978ba4645ec8e22697aebabe4fa.tar.bz2
clang-08235661cf457978ba4645ec8e22697aebabe4fa.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 swap and process the worklists. 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. Checking can be further delayed where parent classes aren't yet fully defined. This patch 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@192947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions