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 | 360a4ae48ea12bf4e6ad77bc70888b3242a93add (patch) | |
tree | e11e3cc7f7a295dec6e2da607cdb212009e97ce2 /llvm/lib/IR/Attributes.cpp | |
parent | 8e44d749f762b576d01101d23053e9fe8606bcfb (diff) | |
download | bcm5719-llvm-360a4ae48ea12bf4e6ad77bc70888b3242a93add.tar.gz bcm5719-llvm-360a4ae48ea12bf4e6ad77bc70888b3242a93add.zip |
Add the attributes that are passed in instead of the ones we're merging into.
llvm-svn: 173108
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 5c95d4a380a..fe6366de790 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/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, |