From be7850dd8aa4224f7f7883c922a07eeee9001a49 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Fri, 13 May 2011 22:58:37 +0000 Subject: Simplify llvm-svn: 131321 --- clang/lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 7cee6b4..eff41c1 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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; -- cgit v1.1