summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/TreeTransform.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-11-24 16:43:22 +0000
committerDouglas Gregor <dgregor@apple.com>2009-11-24 16:43:22 +0000
commit965f450d423f9dd8649b60aa0f65ca8ffdb8e4d8 (patch)
tree6cf422d5fff49f1359712b9ca14de78747c383e6 /clang/lib/Sema/TreeTransform.h
parent8e4b3ed386f877f6a77c05b4431412b1bbf184ac (diff)
downloadbcm5719-llvm-965f450d423f9dd8649b60aa0f65ca8ffdb8e4d8.tar.gz
bcm5719-llvm-965f450d423f9dd8649b60aa0f65ca8ffdb8e4d8.zip
Introduce cleanup scopes for "if" statements in two places:
- Outside the "if", to ensure that we destroy the condition variable at the end of the "if" statement rather than at the end of the block containing the "if" statement. - Inside the "then" and "else" branches, so that we emit then- or else-local cleanups at the end of the corresponding block when the block is not a compound statement. To make adding these new cleanup scopes easier (and since switch/do/while will all need the same treatment), added the CleanupScope RAII object to introduce a new cleanup scope and make sure it gets cleaned up. llvm-svn: 89773
Diffstat (limited to 'clang/lib/Sema/TreeTransform.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud