================
@@ -542,7 +543,9 @@ convertABIArgInfo(const llvm::abi::ArgInfo &info,
MLIRContext *ctx,
// trip for nothing.
if (comparesAgainstCoerce && coerced == origTy)
return ArgClassification::getDirect(nullptr);
- return ArgClassification::getDirect(coerced);
+ ArgClassification classified = ArgClassification::getDirect(coerced);
+ classified.canFlatten = info.getCanBeFlattened();
+ return classified;
----------------
steffenlarsen wrote:
Nit; No point in setting the value first and then overwriting it, when we have
the argument available.
```suggestion
return ArgClassification::getDirect(coerced, /*Offset=*/0,
/*Align=*/std::nullopt,
info.getCanBeFlattened());
```
https://github.com/llvm/llvm-project/pull/220579
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits