From 8be1847b09e358cacfb6219e8b0cdeaf77f1b9fe Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 16 Sep 2015 21:06:09 +0000 Subject: [PATCH] [WinEH] Fix a build issue in CGException.cpp I was constructing an object without filling in all the fields. llvm-svn: 247851 --- clang/lib/CodeGen/CGException.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 6c4a3670e5fc..c5b1c102eeae 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/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) {