diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-30 13:50:49 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-30 13:50:49 +0000 |
commit | 94e94b350652d3a71993bbc7d44afbe3b304605e (patch) | |
tree | 609b531981802fca42e99c872a3191b1219634c8 /lib/VMCore/Core.cpp | |
parent | 8b62abdd7b9c8fc5d78dad86093f4afdfeba949d (diff) |
Use the predicate methods off of AttributeSet instead of Attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171257 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Core.cpp')
-rw-r--r-- | lib/VMCore/Core.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index 60a8483aba..a1e9cf3f35 100644 --- a/lib/VMCore/Core.cpp +++ b/lib/VMCore/Core.cpp @@ -1476,9 +1476,8 @@ void LLVMRemoveAttribute(LLVMValueRef Arg, LLVMAttribute PA) { LLVMAttribute LLVMGetAttribute(LLVMValueRef Arg) { Argument *A = unwrap<Argument>(Arg); - Attribute attr = A->getParent()->getAttributes().getParamAttributes( - A->getArgNo()+1); - return (LLVMAttribute)attr.getBitMask(); + return (LLVMAttribute)A->getParent()->getAttributes(). + getBitMask(A->getArgNo()+1); } |