]> granicus.if.org Git - clang/commitdiff
[WinEH] Fix a build issue in CGException.cpp
authorReid Kleckner <rnk@google.com>
Wed, 16 Sep 2015 21:06:09 +0000 (21:06 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 16 Sep 2015 21:06:09 +0000 (21:06 +0000)
I was constructing an object without filling in all the fields.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247851 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGException.cpp

index 6c4a3670e5fc2d0f327c9dd55ae5def51f1f57f6..c5b1c102eeaed02297ff3afd25d775296a745498 100644 (file)
@@ -1845,8 +1845,7 @@ void CodeGenFunction::EnterSEHTryStmt(const SEHTryStmt &S) {
       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) {