[PATCH] PR19864: Revert r209764 in favor of the fix in r215766 (loop backedge jump attributed to confusing location when the last source line of a loop is inside a conditional)
Adrian Prantl
aprantl at apple.com
Mon Aug 18 14:33:31 PDT 2014
IMO, the best we can do is to use the end of the CompoundStmt as the cleanup location if there is one, and otherwise give up and use line 0.
```
if (c)
foo(); // cleanups = line 0
if (c) {
} // cleanups
if (c)
foo();
else {
bar();
} // cleanups
```
http://reviews.llvm.org/D4956
More information about the cfe-commits
mailing list