diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-13 21:08:27 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-13 21:08:27 +0000 |
commit | b11fa0d25d86169f0e0a29d5398116c0212bb787 (patch) | |
tree | 17259708877643ec401c924c01c1172c8e6b6e20 /lib/CodeGen/CodeGenFunction.cpp | |
parent | 2d41cc1a8c82d892b82218d20487d0cde199dc77 (diff) |
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/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index b9a803286c..7ddc221370 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -199,7 +199,7 @@ void CodeGenFunction::StartFunction(const Decl *D, QualType RetTy, void CodeGenFunction::GenerateCode(const FunctionDecl *FD, llvm::Function *Fn) { // Check if we should generate debug info for this function. - if (CGM.getDebugInfo() && !FD->getAttr<NodebugAttr>()) + if (CGM.getDebugInfo() && !FD->hasAttr<NodebugAttr>()) DebugInfo = CGM.getDebugInfo(); FunctionArgList Args; |