summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/exceptions-cxx-new.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-12-14 18:34:18 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-12-14 18:34:18 +0000
commitfeeefb214dfa398df4cec92b1e9f3e3219d3944f (patch)
tree51029601bc29c11fb0de35224621891fbf59cc23 /clang/test/CodeGenCXX/exceptions-cxx-new.cpp
parentaccc3e03765fc3d623af6198458936f8c9029036 (diff)
downloadbcm5719-llvm-feeefb214dfa398df4cec92b1e9f3e3219d3944f.tar.gz
bcm5719-llvm-feeefb214dfa398df4cec92b1e9f3e3219d3944f.zip
[MS ABI] Don't rely on terminatepad
We'd like to remove support for terminatepad from LLVM. To do this, we need to move Clang off of it first. The intent behind terminatepad was to carefully model exception specifications for the MSVC personality. However, we don't support exception specifications for the MSVC personality and neither does MSVC. Instead, MSVC supports all-or-nothing exception specifications. We can model this limited usage using cleanuppads which call std::terminate. Differential Revision: http://reviews.llvm.org/D15478 llvm-svn: 255521
Diffstat (limited to 'clang/test/CodeGenCXX/exceptions-cxx-new.cpp')
-rw-r--r--clang/test/CodeGenCXX/exceptions-cxx-new.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/exceptions-cxx-new.cpp b/clang/test/CodeGenCXX/exceptions-cxx-new.cpp
index 42b26c9dc8f..3767f3321c3 100644
--- a/clang/test/CodeGenCXX/exceptions-cxx-new.cpp
+++ b/clang/test/CodeGenCXX/exceptions-cxx-new.cpp
@@ -72,5 +72,6 @@ void test_cleanup() {
// CHECK: ret void
// CHECK: [[TERMINATE]]
-// CHECK: terminatepad within none [void ()* @"\01?terminate@@YAXXZ"] unwind to caller
+// CHECK: cleanuppad within none []
+// CHECK-NEXT: call void @"\01?terminate@@YAXXZ"()
OpenPOWER on IntegriCloud