mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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
This commit is contained in:
parent
0d8c5fb91d
commit
da6d5623ae
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user