================
@@ -71,10 +71,11 @@ class ArgInfo {
   bool ZeroExt : 1;
   bool IndirectByVal : 1;
   bool IndirectRealign : 1;
+  bool CanBeFlattened : 1;
 
   ArgInfo(Kind K = Direct)
       : TheKind(K), SignExt(false), ZeroExt(false), IndirectByVal(false),
-        IndirectRealign(false) {}
+        IndirectRealign(false), CanBeFlattened(true) {}
----------------
andykaylor wrote:

This defaults to `false` in classic codegen, and having everything default to 
`false` seems to be the trend here. I see that you're setting it to true so 
existing classifiers don't need to change, but that doesn't seem right. Classic 
codegen seems to only set it through a parameter to `getDirect` (which defaults 
to `true`). Why not handle it that way here?

https://github.com/llvm/llvm-project/pull/220558
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to