summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/microsoft-abi-try-throw.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-04-07 00:09:59 +0000
committerReid Kleckner <reid@kleckner.net>2015-04-07 00:09:59 +0000
commite96d56ddc61d7cf1e67da2c17017156cc81a0c31 (patch)
treeb852fc46378694e2b27f75311687f7acc91a3054 /test/CodeGenCXX/microsoft-abi-try-throw.cpp
parentc02f5c94f3a803dc5a812b1854fea33ca60bcbf0 (diff)
[WinEH] Don't create an alloca for unnamed catch parameters
The catch object parameter to llvm.eh.begincatch is optional, and can be null. We can save some ourselves the stack space, copy ctor, and dtor calls if we pass null. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/microsoft-abi-try-throw.cpp')
-rw-r--r--test/CodeGenCXX/microsoft-abi-try-throw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/microsoft-abi-try-throw.cpp b/test/CodeGenCXX/microsoft-abi-try-throw.cpp
index a3a45a5468..fed3976171 100644
--- a/test/CodeGenCXX/microsoft-abi-try-throw.cpp
+++ b/test/CodeGenCXX/microsoft-abi-try-throw.cpp
@@ -21,7 +21,7 @@ int main() {
external(); // TRY: invoke void @"\01?external@@YAXXZ"
} catch (int) {
rv = 1;
- // TRY: call void @llvm.eh.begincatch(i8* %{{.*}}, i8* %{{.*}})
+ // TRY: call void @llvm.eh.begincatch(i8* %{{.*}}, i8* null)
// TRY: call void @llvm.eh.endcatch()
}
#endif