Let the backend unique these.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64486 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp
index 8c7e82e..cb9de16 100644
--- a/lib/CodeGen/CGBlocks.cpp
+++ b/lib/CodeGen/CGBlocks.cpp
@@ -65,11 +65,9 @@
C = llvm::ConstantStruct::get(Elts);
- char Name[32];
- sprintf(Name, "__block_descriptor_tmp_%d", CGM.getDescriptorUniqueCount());
C = new llvm::GlobalVariable(C->getType(), true,
llvm::GlobalValue::InternalLinkage,
- C, Name, &CGM.getModule());
+ C, "__block_descriptor_tmp", &CGM.getModule());
return C;
}
@@ -126,6 +124,7 @@
if (BlockHasCopyDispose)
flags |= BLOCK_HAS_COPY_DISPOSE;
+ // __isa
C = CGM.getNSConcreteStackBlock();
if (!insideFunction ||
(!BlockRefDeclList && !BlockByrefDeclList)) {