forked from OSchip/llvm-project
SwiftAsync: remove duplicate instance in array. NFC.
This commit is contained in:
parent
23c93c2555
commit
709f2c7e14
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue