From: Mike Stump Date: Wed, 21 Oct 2009 22:02:08 +0000 (+0000) Subject: Turn on the preallocation of all BlockDeclRefExprs. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0298d3888bcc666e7bd902de9b8497f53ccd1b3d;p=clang Turn on the preallocation of all BlockDeclRefExprs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84789 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 08c45874a3..26b19e56bc 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -678,9 +678,7 @@ CodeGenFunction::GenerateBlockFunction(const BlockExpr *BExpr, IdentifierInfo *II = &CGM.getContext().Idents.get(".block_descriptor"); // Allocate all BlockDeclRefDecls, so we can calculate the right ParmTy below. - // FIXME: Resolve testsuite problems, then enable. - if (0) - AllocateAllBlockDeclRefs(Info, this); + AllocateAllBlockDeclRefs(Info, this); QualType ParmTy = getContext().getBlockParmType(BlockDeclRefDecls); // FIXME: This leaks