summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-13 19:06:18 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-13 19:06:18 +0000
commit4feb36de047de72703acd18000387b11aeee4d26 (patch)
tree2f82a42bd16756edd70e5ef96b90b00f48262509 /clang/lib/CodeGen/CodeGenModule.cpp
parent9319db8a1131909bd668ab2f5d38b5ff6465b1ef (diff)
downloadbcm5719-llvm-4feb36de047de72703acd18000387b11aeee4d26.tar.gz
bcm5719-llvm-4feb36de047de72703acd18000387b11aeee4d26.zip
Remove DeclGroupOwningRef, since we intend for declarations to be owned
by DeclContexts (always) rather than by statements. DeclContext currently goes out of its way to avoid destroying any Decls that might be owned by a DeclGroupOwningRef. However, in an error-recovery situation, a failure in a declaration statement can cause all of the decls in a DeclGroupOwningRef to be destroyed after they've already be added into the DeclContext. Hence, DeclContext is left with already-destroyed declarations, and bad things happen. This problem was causing failures that showed up as assertions on x86 Linux in test/Parser/objc-forcollection-neg-2.m. llvm-svn: 64474
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud