================
@@ -277,6 +310,15 @@ 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.
+ if (isComplexGnuABI(*this))
----------------
s-barannikov wrote:
The idea was to avoid calling isComplexGnuABI for every single argument of
every function.
I don't see a big problem with duplicated definition, but I guess you can
extract the initializer into a static function if you like?
https://github.com/llvm/llvm-project/pull/212340
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits