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 | 76958099828bac6ebd45abef9f76934b3e99e397 (patch) | |
tree | 7cf247733aef30a23863d9a7e234d58803f43686 /test/CodeGenCXX/eh.cpp | |
parent | 6bcd5a04db4eb9d51e7f92a4edc418737a5aeefd (diff) |
Add terminate handler for copy constructors for thrown objects. WIP.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/eh.cpp')
-rw-r--r-- | test/CodeGenCXX/eh.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CodeGenCXX/eh.cpp b/test/CodeGenCXX/eh.cpp index 3dd7219d9a..ec457dd418 100644 --- a/test/CodeGenCXX/eh.cpp +++ b/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 |