diff options
author | John McCall <rjmccall@apple.com> | 2012-09-25 06:56:03 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2012-09-25 06:56:03 +0000 |
commit | b0433eeb2e536e21a62030fd2f17d94ad2a1d2f5 (patch) | |
tree | 3b0fba774252c9e3043a44518153aa21b131efcd /clang/test/CodeGenCXX/exceptions.cpp | |
parent | 446ff28df1242fcd11ce1df18af9c944afdcbdd3 (diff) | |
download | bcm5719-llvm-b0433eeb2e536e21a62030fd2f17d94ad2a1d2f5.tar.gz bcm5719-llvm-b0433eeb2e536e21a62030fd2f17d94ad2a1d2f5.zip |
During jump-scope checking, build an ExprWithCleanups immediately
into the enclosing scope; this is a more accurate model but is
(I believe) unnecessary in my test case due to other flaws.
However, one of those flaws is now intentional: blocks which
appear in return statements can be trivially observed to not
extend in lifetime past the return, and so we can allow a jump
past them. Do the necessary magic in IR-generation to make
this work.
llvm-svn: 164589
Diffstat (limited to 'clang/test/CodeGenCXX/exceptions.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/exceptions.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/exceptions.cpp b/clang/test/CodeGenCXX/exceptions.cpp index 8c20c9e9ce2..723e8d1393c 100644 --- a/clang/test/CodeGenCXX/exceptions.cpp +++ b/clang/test/CodeGenCXX/exceptions.cpp @@ -365,6 +365,7 @@ namespace test7 { // CHECK-NEXT: invoke void @_ZN5test71BC1ERKNS_1AEPS0_( // CHECK: store i1 false, i1* [[OUTER_NEW]] // CHECK: phi + // CHECK-NEXT: store [[B]]* // Destroy the inner A object. // CHECK-NEXT: load i1* [[INNER_A]] |