diff options
author | Reid Kleckner <rnk@google.com> | 2015-09-16 21:06:09 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2015-09-16 21:06:09 +0000 |
commit | 8be1847b09e358cacfb6219e8b0cdeaf77f1b9fe (patch) | |
tree | 2191bfaea6a6889839bdc93ea8d52ef3d6b57eca /clang/lib/CodeGen/CGException.cpp | |
parent | bff03b09821470a5e500beff0f78ca56a91e1ecc (diff) | |
download | llvm-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.cpp | 3 |
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) { |