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 | 62c296e1bd7581a444c2dc7ddb76f0bf2f364f23 (patch) | |
tree | 455c4ca262a482c23a470956d6b3dca53d44f58a /lib/CodeGen/CodeGenModule.cpp | |
parent | 4fe497d5cd34a7dca6e68b2e0a00fe2293570742 (diff) |
Simplify
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 7cee6b4565..eff41c17cd 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/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; |