diff options
-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 5c95d4a380..fe6366de79 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, |