[cfe-commits] [PATCH] Fix cleanups for while() statements
Douglas Gregor
dgregor at apple.com
Tue Nov 24 11:02:40 PST 2009
This patch addresses various problems with cleanups for while statements. In particular:
1) It makes sure that we destroy the condition variable of a while statement each time through the loop for, e.g.,
while (shared_ptr<WorkInt> p = getWorkItem()) {
// ...
}
2) It makes sure that we always enter a new cleanup scope for the body of the while loop, even when there is no compound expression, e.g.,
while (blah)
RAIIObject raii(blah+1);
Daniel or Anders, please review the CodeGen changes in CGStmt.
- Doug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: while-cleanups.patch
Type: application/octet-stream
Size: 9732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091124/c6a5d528/attachment.obj>
More information about the cfe-commits
mailing list