SwiftAsync: remove duplicate instance in array. NFC.

This commit is contained in:
Tim Northover 2021-05-14 19:21:54 +01:00
parent 23c93c2555
commit 709f2c7e14
1 changed files with 3 additions and 4 deletions

View File

@ -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))