]> granicus.if.org Git - clang/commitdiff
Turn on the preallocation of all BlockDeclRefExprs.
authorMike Stump <mrs@apple.com>
Wed, 21 Oct 2009 22:02:08 +0000 (22:02 +0000)
committerMike Stump <mrs@apple.com>
Wed, 21 Oct 2009 22:02:08 +0000 (22:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84789 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBlocks.cpp

index 08c45874a392e2a0b7ff40a0df740a1df83d5ff7..26b19e56bc2eba4743fe9c07d7aa5acfcfa1001f 100644 (file)
@@ -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