[cfe-commits] r130734 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Devang Patel
dpatel at apple.com
Mon May 2 15:37:48 PDT 2011
Author: dpatel
Date: Mon May 2 17:37:48 2011
New Revision: 130734
URL: http://llvm.org/viewvc/llvm-project?rev=130734&view=rev
Log:
Do not try to get mangled name of block helpers. Apply a stopgap measure to fix SingleSource/UnitTests/block-copied-in-cxxobj compile time crash.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=130734&r1=130733&r2=130734&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon May 2 17:37:48 2011
@@ -1644,7 +1644,9 @@
}
Name = getFunctionName(FD);
// Use mangled name as linkage name for c/c++ functions.
- LinkageName = CGM.getMangledName(GD);
+ // FIXME : Why do we need check for block helpers ?
+ if (Name != "__copy_helper_block_" && Name != "__destroy_helper_block_")
+ LinkageName = CGM.getMangledName(GD);
if (LinkageName == Name)
LinkageName = llvm::StringRef();
if (FD->hasPrototype())
More information about the cfe-commits
mailing list