diff options
| author | Mike Stump <mrs@apple.com> | 2009-12-09 23:31:35 +0000 |
|---|---|---|
| committer | Mike Stump <mrs@apple.com> | 2009-12-09 23:31:35 +0000 |
| commit | 25b20fc2ae8c08ee391b8b6a7f7856c2c275ead1 (patch) | |
| tree | 052b3eb0ec9da2a2d45ef56fa49dbad329c80ce5 /clang/test | |
| parent | 857391376077268a5997fb569f1851cb9b3d7309 (diff) | |
| download | bcm5719-llvm-25b20fc2ae8c08ee391b8b6a7f7856c2c275ead1.tar.gz bcm5719-llvm-25b20fc2ae8c08ee391b8b6a7f7856c2c275ead1.zip | |
Add terminate handler for copy constructors for thrown objects. WIP.
llvm-svn: 90994
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CodeGenCXX/eh.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/eh.cpp b/clang/test/CodeGenCXX/eh.cpp index 3dd7219d9af..ec457dd4187 100644 --- a/clang/test/CodeGenCXX/eh.cpp +++ b/clang/test/CodeGenCXX/eh.cpp @@ -34,8 +34,9 @@ void test2() { // CHECK-NEXT:entry: // CHECK-NEXT: %exception = call i8* @__cxa_allocate_exception(i64 16) // CHECK-NEXT: %0 = bitcast i8* %exception to %struct.test2_D* -// CHECK-NEXT: call void @_ZN7test2_DC1ERKS_(%struct.test2_D* %0, %struct.test2_D* @d2) -// CHECK-NEXT: call void @__cxa_throw(i8* %exception, i8* bitcast (%0* @_ZTI7test2_D to i8*), i8* null) noreturn +// CHECK: invoke void @_ZN7test2_DC1ERKS_(%struct.test2_D* %0, %struct.test2_D* @d2) +// CHECK-NEXT: to label %invoke.cont unwind label %terminate.handler +// CHECK: call void @__cxa_throw(i8* %exception, i8* bitcast (%0* @_ZTI7test2_D to i8*), i8* null) noreturn // CHECK-NEXT: unreachable |

