diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-22 00:41:33 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-22 00:41:33 +0000 |
commit | da6d5623aefeb3c77a610954c77605107e1532b8 (patch) | |
tree | bdd12dc65ff6257510cc20ec55863d323f699710 /lib | |
parent | 0d8c5fb91d9240f14246803200c0110e25e849d8 (diff) | |
download | external_llvm-da6d5623aefeb3c77a610954c77605107e1532b8.zip external_llvm-da6d5623aefeb3c77a610954c77605107e1532b8.tar.gz external_llvm-da6d5623aefeb3c77a610954c77605107e1532b8.tar.bz2 |
Add the attributes that are passed in instead of the ones we're merging into.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/IR/Attributes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp index 5c95d4a..fe6366d 100644 --- a/lib/IR/Attributes.cpp +++ b/lib/IR/Attributes.cpp @@ -693,12 +693,12 @@ bool AttributeSet::hasAttrSomewhere(Attribute::AttrKind Attr) const { AttributeSet AttributeSet::addRetAttributes(LLVMContext &C, AttributeSet Attrs) const { - return addAttr(C, ReturnIndex, getAttributes(ReturnIndex)); + return addAttr(C, ReturnIndex, Attrs.getAttributes(ReturnIndex)); } AttributeSet AttributeSet::addFnAttributes(LLVMContext &C, AttributeSet Attrs) const { - return addAttr(C, FunctionIndex, getAttributes(FunctionIndex)); + return addAttr(C, FunctionIndex, Attrs.getAttributes(FunctionIndex)); } AttributeSet AttributeSet::addAttr(LLVMContext &C, unsigned Idx, |