summaryrefslogtreecommitdiff
path: root/lib/CodeGen/Mangle.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-13 21:08:27 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-13 21:08:27 +0000
commitb11fa0d25d86169f0e0a29d5398116c0212bb787 (patch)
tree17259708877643ec401c924c01c1172c8e6b6e20 /lib/CodeGen/Mangle.cpp
parent2d41cc1a8c82d892b82218d20487d0cde199dc77 (diff)
downloadclang-b11fa0d25d86169f0e0a29d5398116c0212bb787.tar.gz
clang-b11fa0d25d86169f0e0a29d5398116c0212bb787.tar.bz2
clang-b11fa0d25d86169f0e0a29d5398116c0212bb787.tar.xz
Update to use hasAttr() instead of getAttr().
- No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68987 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Mangle.cpp')
-rw-r--r--lib/CodeGen/Mangle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp
index 049353faae..3d78b23810 100644
--- a/lib/CodeGen/Mangle.cpp
+++ b/lib/CodeGen/Mangle.cpp
@@ -74,7 +74,7 @@ static bool isInCLinkageSpecification(const Decl *D) {
bool CXXNameMangler::mangleFunctionDecl(const FunctionDecl *FD) {
// Clang's "overloadable" attribute extension to C/C++ implies
// name mangling (always).
- if (FD->getAttr<OverloadableAttr>()) {
+ if (FD->hasAttr<OverloadableAttr>()) {
; // fall into mangling code unconditionally.
} else if (// C functions are not mangled
!Context.getLangOptions().CPlusPlus ||