aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-06-29 18:41:17 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-06-29 18:41:17 +0000
commit5d9b6bf9de98a33427fc7a3beeca90a3002b4744 (patch)
tree57e0d2a0c0e54abbd68dc7e6b0fc6ad828485af6 /lib/CodeGen/CGBlocks.cpp
parentc3151c4328ad7233a269a53e8d523e1f0562594d (diff)
Use existing -fcatch-undefined-behavior option,
replacing -freset-local-blocks. // rdar://9227352 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r--lib/CodeGen/CGBlocks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp
index 20b5c9bed0..3488f2edb7 100644
--- a/lib/CodeGen/CGBlocks.cpp
+++ b/lib/CodeGen/CGBlocks.cpp
@@ -665,7 +665,7 @@ llvm::Value *CodeGenFunction::EmitBlockLiteral(const BlockExpr *blockExpr) {
llvm::Value *result =
Builder.CreateBitCast(blockAddr,
ConvertType(blockInfo.getBlockExpr()->getType()));
- if (getLangOptions().ResetLocalBlocks)
+ if (getLangOptions().CatchUndefined)
EHStack.pushCleanup<CallMemsetLocalBlockObject>(NormalCleanup, blockAddr,
blockInfo.BlockSize);