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 | 749a43d874f06127fa163efff456693e29124aeb (patch) | |
tree | 250a92158e98d233cdf18f64c1bb176df12ce84a /llvm/lib/VMCore/Core.cpp | |
parent | 74dba875e2f2d60919f0151022a995ef4883efb5 (diff) | |
download | bcm5719-llvm-749a43d874f06127fa163efff456693e29124aeb.tar.gz bcm5719-llvm-749a43d874f06127fa163efff456693e29124aeb.zip |
Use the predicate methods off of AttributeSet instead of Attribute.
llvm-svn: 171257
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
-rw-r--r-- | llvm/lib/VMCore/Core.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index 60a8483aba5..a1e9cf3f359 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/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); } |