SwiftAsync: remove duplicate instance in array. NFC.
authorTim Northover <t.p.northover@gmail.com>
Fri, 14 May 2021 18:21:54 +0000 (19:21 +0100)
committerTim Northover <t.p.northover@gmail.com>
Fri, 14 May 2021 18:21:54 +0000 (19:21 +0100)
llvm/lib/IR/Verifier.cpp

index da197f3..b70349e 100644 (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))