[cfe-commits] r131321 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Joerg Sonnenberger joerg at bec.de
Fri May 13 15:58:37 PDT 2011


Author: joerg
Date: Fri May 13 17:58:37 2011
New Revision: 131321

URL: http://llvm.org/viewvc/llvm-project?rev=131321&view=rev
Log:
Simplify

Modified:
    cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=131321&r1=131320&r2=131321&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Fri May 13 17:58:37 2011
@@ -1580,7 +1580,7 @@
   // 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;





More information about the cfe-commits mailing list