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

@ -3377,10 +3377,9 @@ static bool isTypeCongruent(Type *L, Type *R) {
static AttrBuilder getParameterABIAttributes(int I, AttributeList Attrs) {
static const Attribute::AttrKind ABIAttrs[] = {
Attribute::StructRet, Attribute::ByVal, Attribute::InAlloca,
Attribute::InReg, Attribute::SwiftSelf, Attribute::SwiftAsync,
Attribute::SwiftError, Attribute::SwiftAsync, Attribute::Preallocated,
Attribute::ByRef};
Attribute::StructRet, Attribute::ByVal, Attribute::InAlloca,
Attribute::InReg, Attribute::SwiftSelf, Attribute::SwiftAsync,
Attribute::SwiftError, Attribute::Preallocated, Attribute::ByRef};
AttrBuilder Copy;
for (auto AK : ABIAttrs) {
if (Attrs.hasParamAttribute(I, AK))