diff --git a/lib/CodeGen/CGException.cpp b/lib/CodeGen/CGException.cpp index 6c4a3670e5fc2d0f327c9dd55ae5def51f1f57f6..c5b1c102eeaed02297ff3afd25d775296a745498 100644 --- a/lib/CodeGen/CGException.cpp +++ b/lib/CodeGen/CGException.cpp @@ -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) {