]> granicus.if.org Git - clang/commitdiff
Simplify
authorJoerg Sonnenberger <joerg@bec.de>
Fri, 13 May 2011 22:58:37 +0000 (22:58 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Fri, 13 May 2011 22:58:37 +0000 (22:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131321 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index 7cee6b4565daef4701bf04ec96de420c4a7d0bcd..eff41c17cd9b1305d649e648161ab55490ba8050 100644 (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;