From: John McCall Date: Tue, 12 Jul 2011 16:53:04 +0000 (+0000) Subject: Ugh, use this compiler workaround again. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bcd95efc380b0f7e74290e0555facb760935767;p=clang Ugh, use this compiler workaround again. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134989 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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: