forked from OSchip/llvm-project
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:
parent
66fd073974
commit
b7ff0da623
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue