[llvm] [CodeGen] Give ArgListEntry a proper constructor (NFC) (PR #153817)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 15 08:10:23 PDT 2025


================
@@ -320,12 +320,17 @@ class LLVM_ABI TargetLoweringBase {
     MaybeAlign Alignment = std::nullopt;
     Type *IndirectType = nullptr;
 
-    ArgListEntry()
-        : IsSExt(false), IsZExt(false), IsNoExt(false), IsInReg(false),
-          IsSRet(false), IsNest(false), IsByVal(false), IsByRef(false),
-          IsInAlloca(false), IsPreallocated(false), IsReturned(false),
-          IsSwiftSelf(false), IsSwiftAsync(false), IsSwiftError(false),
-          IsCFGuardTarget(false) {}
+    ArgListEntry(Value *Val, SDValue Node, Type *Ty)
+        : Val(Val), Node(Node), Ty(Ty), IsSExt(false), IsZExt(false),
----------------
s-barannikov wrote:

Can these be initialized in the class instead?


https://github.com/llvm/llvm-project/pull/153817


More information about the llvm-commits mailing list