aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGException.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2015-09-16 21:06:09 +0000
committerReid Kleckner <rnk@google.com>2015-09-16 21:06:09 +0000
commit8be1847b09e358cacfb6219e8b0cdeaf77f1b9fe (patch)
tree2191bfaea6a6889839bdc93ea8d52ef3d6b57eca /clang/lib/CodeGen/CGException.cpp
parentbff03b09821470a5e500beff0f78ca56a91e1ecc (diff)
downloadllvm-8be1847b09e358cacfb6219e8b0cdeaf77f1b9fe.zip
llvm-8be1847b09e358cacfb6219e8b0cdeaf77f1b9fe.tar.gz
llvm-8be1847b09e358cacfb6219e8b0cdeaf77f1b9fe.tar.bz2
[WinEH] Fix a build issue in CGException.cpp
I was constructing an object without filling in all the fields. llvm-svn: 247851
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r--clang/lib/CodeGen/CGException.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index 6c4a367..c5b1c10 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) {