[WinEH] Don't create an alloca for unnamed catch parameters
authorReid Kleckner <reid@kleckner.net>
Tue, 7 Apr 2015 00:09:59 +0000 (00:09 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 7 Apr 2015 00:09:59 +0000 (00:09 +0000)
commit67cf035a994bdbe87183751775d4bc7b816f52b1
treef2e0c3dd3461e13803e3550b9d75af92c435e6c4
parentcc11b6c1fe006ff63d44718292d347eeb947a55a
[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.

llvm-svn: 234264
clang/lib/CodeGen/MicrosoftCXXABI.cpp
clang/test/CodeGenCXX/microsoft-abi-eh-catch.cpp
clang/test/CodeGenCXX/microsoft-abi-try-throw.cpp