summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-10-21 22:02:08 +0000
committerMike Stump <mrs@apple.com>2009-10-21 22:02:08 +0000
commitf23b0ead3d9b1b7948adb7aad0ba5147c4686df6 (patch)
treeffe9a39f751c629d19eeda0ffe24223ac19f77fa /clang/lib/CodeGen
parentb8440a76c48ceb9ccc00c8b1f4f09ae213d77e22 (diff)
downloadbcm5719-llvm-f23b0ead3d9b1b7948adb7aad0ba5147c4686df6.tar.gz
bcm5719-llvm-f23b0ead3d9b1b7948adb7aad0ba5147c4686df6.zip
Turn on the preallocation of all BlockDeclRefExprs.
llvm-svn: 84789
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index 08c45874a39..26b19e56bc2 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud