[llvm] dbf8cc7 - Verifier: second attempt to fix what I broke with swiftasync.

Tim Northover via llvm-commits llvm-commits at lists.llvm.org
Sat May 15 00:05:03 PDT 2021


Author: Tim Northover
Date: 2021-05-15T08:04:57+01:00
New Revision: dbf8cc7b6625ed3547e49b2faecdde3337b1ea6d

URL: https://github.com/llvm/llvm-project/commit/dbf8cc7b6625ed3547e49b2faecdde3337b1ea6d
DIFF: https://github.com/llvm/llvm-project/commit/dbf8cc7b6625ed3547e49b2faecdde3337b1ea6d.diff

LOG: Verifier: second attempt to fix what I broke with swiftasync.

During a rebase I messed up this array, so trying to put it back to as it was
before with just one SwiftAsync entry.

Added: 
    

Modified: 
    llvm/lib/IR/Verifier.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index b70349e658e2..620078629353 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -3377,9 +3377,10 @@ 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::Preallocated, Attribute::ByRef};
+      Attribute::StructRet,  Attribute::ByVal,          Attribute::InAlloca,
+      Attribute::InReg,      Attribute::StackAlignment, Attribute::SwiftSelf,
+      Attribute::SwiftAsync, Attribute::SwiftError,     Attribute::Preallocated,
+      Attribute::ByRef};
   AttrBuilder Copy;
   for (auto AK : ABIAttrs) {
     if (Attrs.hasParamAttribute(I, AK))


        


More information about the llvm-commits mailing list