From: Joerg Sonnenberger Date: Fri, 13 May 2011 22:58:37 +0000 (+0000) Subject: Simplify X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62c296e1bd7581a444c2dc7ddb76f0bf2f364f23;p=clang Simplify git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131321 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 7cee6b4565..eff41c17cd 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -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()) + if (FD->hasAttr()) Name = getMangledName(D); else if (Context.BuiltinInfo.isLibFunction(BuiltinID)) Name = Context.BuiltinInfo.GetName(BuiltinID) + 10;