summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2011-05-13 22:58:37 +0000
committerJoerg Sonnenberger <joerg@bec.de>2011-05-13 22:58:37 +0000
commitbe7850dd8aa4224f7f7883c922a07eeee9001a49 (patch)
tree0ae19216e34cc988b3ec4f20c46790b4c7eac47f /clang/lib/CodeGen/CodeGenModule.cpp
parent0bd34fbd01471965dfc33dcf0aa7ddac17435a30 (diff)
downloadbcm5719-llvm-be7850dd8aa4224f7f7883c922a07eeee9001a49.tar.gz
bcm5719-llvm-be7850dd8aa4224f7f7883c922a07eeee9001a49.zip
Simplify
llvm-svn: 131321
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 7cee6b4565d..eff41c17cd9 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<AsmLabelAttr>())
+ if (FD->hasAttr<AsmLabelAttr>())
Name = getMangledName(D);
else if (Context.BuiltinInfo.isLibFunction(BuiltinID))
Name = Context.BuiltinInfo.GetName(BuiltinID) + 10;
OpenPOWER on IntegriCloud