r247851 - [WinEH] Fix a build issue in CGException.cpp

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 16 14:06:09 PDT 2015


Author: rnk
Date: Wed Sep 16 16:06:09 2015
New Revision: 247851

URL: http://llvm.org/viewvc/llvm-project?rev=247851&view=rev
Log:
[WinEH] Fix a build issue in CGException.cpp

I was constructing an object without filling in all the fields.

Modified:
    cfe/trunk/lib/CodeGen/CGException.cpp

Modified: cfe/trunk/lib/CodeGen/CGException.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGException.cpp?rev=247851&r1=247850&r2=247851&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGException.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGException.cpp Wed Sep 16 16:06:09 2015
@@ -1845,8 +1845,7 @@ void CodeGenFunction::EnterSEHTryStmt(co
       HelperCGF.GenerateSEHFilterFunction(*this, *Except);
   llvm::Constant *OpaqueFunc =
       llvm::ConstantExpr::getBitCast(FilterFunc, Int8PtrTy);
-  CatchScope->setHandler(0, CatchTypeInfo{OpaqueFunc},
-                         createBasicBlock("__except.ret"));
+  CatchScope->setHandler(0, OpaqueFunc, createBasicBlock("__except.ret"));
 }
 
 void CodeGenFunction::ExitSEHTryStmt(const SEHTryStmt &S) {




More information about the cfe-commits mailing list