[clang] [Sparc][clang] make `_Complex` ABI GCC-compatible (PR #212340)

Folkert de Vries via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 2 05:08:19 PDT 2026


================
@@ -277,6 +313,20 @@ ABIArgInfo SparcV9ABIInfo::classifyType(QualType Ty, unsigned SizeLimit,
       return ABIArgInfo::getExtend(Ty);
     }
 
+  // When being GCC-compatible, cast a complex integer to an integer type
+  // of the right size to get the correct scalar-like behavior.
----------------
folkertdev wrote:

Sure, I've added that other types just fall through, and are hence treated like any other struct with two scalar fields.

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


More information about the cfe-commits mailing list