From 0298d3888bcc666e7bd902de9b8497f53ccd1b3d Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Wed, 21 Oct 2009 22:02:08 +0000 Subject: [PATCH] Turn on the preallocation of all BlockDeclRefExprs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84789 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGBlocks.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.50.1