[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:22 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),
+ 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 = SDValue())
----------------
s-barannikov wrote:
(nit) This one should be `explicit`.
https://github.com/llvm/llvm-project/pull/153817
More information about the llvm-commits
mailing list