forked from OSchip/llvm-project
SwiftAsync: remove duplicate instance in array. NFC.
This commit is contained in:
parent
23c93c2555
commit
709f2c7e14
|
@ -3379,8 +3379,7 @@ static AttrBuilder getParameterABIAttributes(int I, AttributeList Attrs) {
|
||||||
static const Attribute::AttrKind ABIAttrs[] = {
|
static const Attribute::AttrKind ABIAttrs[] = {
|
||||||
Attribute::StructRet, Attribute::ByVal, Attribute::InAlloca,
|
Attribute::StructRet, Attribute::ByVal, Attribute::InAlloca,
|
||||||
Attribute::InReg, Attribute::SwiftSelf, Attribute::SwiftAsync,
|
Attribute::InReg, Attribute::SwiftSelf, Attribute::SwiftAsync,
|
||||||
Attribute::SwiftError, Attribute::SwiftAsync, Attribute::Preallocated,
|
Attribute::SwiftError, Attribute::Preallocated, Attribute::ByRef};
|
||||||
Attribute::ByRef};
|
|
||||||
AttrBuilder Copy;
|
AttrBuilder Copy;
|
||||||
for (auto AK : ABIAttrs) {
|
for (auto AK : ABIAttrs) {
|
||||||
if (Attrs.hasParamAttribute(I, AK))
|
if (Attrs.hasParamAttribute(I, AK))
|
||||||
|
|
Loading…
Reference in New Issue