[llvm] [X86] Correct an assertion message (NFC) (PR #149386)

Trevor Gross via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 17 12:21:00 PDT 2025


https://github.com/tgross35 created https://github.com/llvm/llvm-project/pull/149386

I introduced this in a78a0f8d2043 ("[X86] Align f128 and i128 to 16 bytes"). Correct the message here.

>From 0dd1f1fa92d37fd3d7dcd9086ced8544552f7531 Mon Sep 17 00:00:00 2001
From: Trevor Gross <tmgross at umich.edu>
Date: Thu, 17 Jul 2025 19:14:47 +0000
Subject: [PATCH] [X86] Correct an assertion message (NFC)

I introduced this in a78a0f8d2043 ("[X86] Align f128 and i128 to 16
bytes"). Correct the message here.
---
 llvm/lib/Target/X86/X86CallingConv.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Target/X86/X86CallingConv.cpp b/llvm/lib/Target/X86/X86CallingConv.cpp
index 82e8ce4e0bd7c..5d5a705893242 100644
--- a/llvm/lib/Target/X86/X86CallingConv.cpp
+++ b/llvm/lib/Target/X86/X86CallingConv.cpp
@@ -389,7 +389,7 @@ static bool CC_X86_32_I128_FP128(unsigned &ValNo, MVT &ValVT, MVT &LocVT,
   if (!ArgFlags.isInConsecutiveRegsLast())
     return true;
 
-  assert(PendingMembers.size() == 4 && "Should have two parts");
+  assert(PendingMembers.size() == 4 && "Should have four parts");
 
   int64_t Offset = State.AllocateStack(16, Align(16));
   PendingMembers[0].convertToMem(Offset);



More information about the llvm-commits mailing list