llvm-svn: 131321
This commit is contained in:
Joerg Sonnenberger
2011-05-13 22:58:37 +00:00
parent 0bd34fbd01
commit be7850dd8a

View File

@@ -1580,7 +1580,7 @@ llvm::Value *CodeGenModule::getBuiltinLibFunction(const FunctionDecl *FD,
// If the builtin has been declared explicitly with an assembler label,
// use the mangled name. This differs from the plain label on platforms
// that prefix labels.
if (const AsmLabelAttr *ALA = FD->getAttr<AsmLabelAttr>())
if (FD->hasAttr<AsmLabelAttr>())
Name = getMangledName(D);
else if (Context.BuiltinInfo.isLibFunction(BuiltinID))
Name = Context.BuiltinInfo.GetName(BuiltinID) + 10;