diff options
author | John McCall <rjmccall@apple.com> | 2010-07-23 21:56:41 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-07-23 21:56:41 +0000 |
commit | ad5d61e227c9879227c5bf9a6c82bbb5fdd5a7b0 (patch) | |
tree | 29d8194fe3b19f712530cae4fe382ddcb6aba541 /clang/test/CodeGenObjC/gnu-exceptions.m | |
parent | 946274471da40720baae5e510d2df90854973c01 (diff) | |
download | bcm5719-llvm-ad5d61e227c9879227c5bf9a6c82bbb5fdd5a7b0.tar.gz bcm5719-llvm-ad5d61e227c9879227c5bf9a6c82bbb5fdd5a7b0.zip |
Revise cleanup IR generation to fix a major bug with cleanups (PR7686)
as well as some significant asymptotic inefficiencies with threading
multiple jumps through deep cleanups.
llvm-svn: 109274
Diffstat (limited to 'clang/test/CodeGenObjC/gnu-exceptions.m')
-rw-r--r-- | clang/test/CodeGenObjC/gnu-exceptions.m | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/test/CodeGenObjC/gnu-exceptions.m b/clang/test/CodeGenObjC/gnu-exceptions.m index 190a2b8d4e4..6790a299375 100644 --- a/clang/test/CodeGenObjC/gnu-exceptions.m +++ b/clang/test/CodeGenObjC/gnu-exceptions.m @@ -10,16 +10,20 @@ void test0() { @try { // CHECK: invoke void @opaque() opaque(); + + // CHECK: call void @log(i32 1) + } @catch (C *c) { // CHECK: call i8* @llvm.eh.exception() // CHECK: call i32 (i8*, i8*, ...)* @llvm.eh.selector({{.*}} @__gnu_objc_personality_v0 // CHECK: br i1 - // CHECK: call void @objc_exception_throw // CHECK: call void @log(i32 0) + + // CHECK: call void @objc_exception_throw + log(0); } - // CHECK: call void @log(i32 1) log(1); } |