diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-12-14 18:34:18 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-12-14 18:34:18 +0000 |
commit | 9b3ccdbf7256b8fab5824f8487c0abbc3182e06b (patch) | |
tree | c94ffd5ccab034a3f0ca2b1b44659dc473da86d3 /test/CodeGenCXX/exceptions-cxx-new.cpp | |
parent | 410dc5fc042400619dce122a12444323f75e197b (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/exceptions-cxx-new.cpp')
-rw-r--r-- | test/CodeGenCXX/exceptions-cxx-new.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGenCXX/exceptions-cxx-new.cpp b/test/CodeGenCXX/exceptions-cxx-new.cpp index 42b26c9dc8..3767f3321c 100644 --- a/test/CodeGenCXX/exceptions-cxx-new.cpp +++ b/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"() |