[clang] [clang][PowerPC] Add flag to enable compatibility with GNU for complex arguments (PR #77732)

zhijian lin via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 20 08:17:25 PDT 2024


================
@@ -420,6 +496,10 @@ ABIArgInfo PPC32_SVR4_ABIInfo::classifyReturnType(QualType RetTy) const {
       return ABIArgInfo::getDirect(CoerceTy);
     }
   }
+  if (IsComplexInRegABI && RetTy->isAnyComplexType()) {
+    assert(RetTy->isAnyComplexType() && "RetTy must be Complex type.");
----------------
diggerlin wrote:

you already has `if (IsComplexInRegABI && RetTy->isAnyComplexType())` as condition, is there any reason to keep the `assert(RetTy->isAnyComplexType() && "RetTy must be Complex type.");`

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


More information about the cfe-commits mailing list