diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2011-05-13 22:58:37 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2011-05-13 22:58:37 +0000 |
commit | be7850dd8aa4224f7f7883c922a07eeee9001a49 (patch) | |
tree | 0ae19216e34cc988b3ec4f20c46790b4c7eac47f /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 0bd34fbd01471965dfc33dcf0aa7ddac17435a30 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |