diff options
author | John McCall <rjmccall@apple.com> | 2011-07-12 16:53:04 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-07-12 16:53:04 +0000 |
commit | 5bcd95efc380b0f7e74290e0555facb760935767 (patch) | |
tree | d0d259b4a102875c4881d3f8fa3d2941b819cf9b /lib/CodeGen/CGBlocks.cpp | |
parent | 9928c4805aa8d5fabd488d0d0c5aeb64fd50f0e3 (diff) |
Ugh, use this compiler workaround again.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134989 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 7c35091a2c..0bc99e2ea8 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -633,11 +633,13 @@ llvm::Value *CodeGenFunction::EmitBlockLiteral(const BlockExpr *blockExpr) { // Block captures count as local values and have imprecise semantics. // They also can't be arrays, so need to worry about that. - case QualType::DK_objc_strong_lifetime: + case QualType::DK_objc_strong_lifetime: { + // This local is a GCC and MSVC compiler workaround. + Destroyer *destroyer = &destroyARCStrongImprecise; pushDestroy(getCleanupKind(dtorKind), blockField, type, - destroyARCStrongImprecise, - /*useEHCleanupForArray*/ false); + *destroyer, /*useEHCleanupForArray*/ false); break; + } case QualType::DK_objc_weak_lifetime: case QualType::DK_cxx_destructor: |