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.

llvm-svn: 130734
This commit is contained in:
Devang Patel 2011-05-02 22:37:48 +00:00
parent 66fd073974
commit b7ff0da623
1 changed files with 3 additions and 1 deletions

View File

@ -1644,7 +1644,9 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, QualType FnType,
}
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())