[llvm] [Mips] Fix clang crashes when compiling a variadic function while tar… (PR #130558)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 12 11:15:41 PDT 2025


================
@@ -37,9 +37,13 @@ ArrayRef<MCPhysReg> MipsABIInfo::GetByValArgRegs() const {
   llvm_unreachable("Unhandled ABI");
 }
 
-ArrayRef<MCPhysReg> MipsABIInfo::GetVarArgRegs() const {
-  if (IsO32())
-    return ArrayRef(O32IntRegs);
+ArrayRef<MCPhysReg> MipsABIInfo::GetVarArgRegs(bool isGP64bit) const {
----------------
MaskRay wrote:

rename to `getVarArgRegs` (functionName convention) while you are modifying it.

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


More information about the llvm-commits mailing list