summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/nrvo.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2013-02-12 03:51:46 +0000
committerJohn McCall <rjmccall@apple.com>2013-02-12 03:51:46 +0000
commite142ad50f1ed0f5d1a38432dd88790a51ad9e727 (patch)
treedfdb143d96cd434a6a2b9f417f5d51f7a35b2c86 /clang/test/CodeGenCXX/nrvo.cpp
parent2c33ba8caef144835edcd4fcb9e63f2dd5912de4 (diff)
downloadbcm5719-llvm-e142ad50f1ed0f5d1a38432dd88790a51ad9e727.tar.gz
bcm5719-llvm-e142ad50f1ed0f5d1a38432dd88790a51ad9e727.zip
Call __cxa_begin_catch with the current exception before
calling std::terminate(). rdar://11904428 llvm-svn: 174940
Diffstat (limited to 'clang/test/CodeGenCXX/nrvo.cpp')
-rw-r--r--clang/test/CodeGenCXX/nrvo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/nrvo.cpp b/clang/test/CodeGenCXX/nrvo.cpp
index 8ff7dd7d090..3d4b6f97400 100644
--- a/clang/test/CodeGenCXX/nrvo.cpp
+++ b/clang/test/CodeGenCXX/nrvo.cpp
@@ -100,9 +100,10 @@ X test2(bool B) {
// CHECK-EH: resume { i8*, i32 }
// %terminate.lpad: terminate landing pad.
- // CHECK-EH: landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+ // CHECK-EH: [[T0:%.*]] = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
// CHECK-EH-NEXT: catch i8* null
- // CHECK-EH-NEXT: call void @_ZSt9terminatev()
+ // CHECK-EH-NEXT: [[T1:%.*]] = extractvalue { i8*, i32 } [[T0]], 0
+ // CHECK-EH-NEXT: call void @__clang_call_terminate(i8* [[T1]]) noreturn nounwind
// CHECK-EH-NEXT: unreachable
}
OpenPOWER on IntegriCloud