================
@@ -164,6 +164,22 @@ getNewFieldsOrder(const RecordDecl *Definition,
   return NewFieldsOrder;
 }
 
+static bool isOrderValid(const RecordDecl *RD, ArrayRef<unsigned> FieldOrder) {
+  if (FieldOrder.empty())
+    return false;
----------------
vvuksanovic wrote:

`getNewFieldsOrder` returns an empty array if the field order command line 
argument is bad. I suppose an empty struct will end up here too, but in that 
case there is nothing to reorder. This behavior is the same as it was, just 
moved to this function.

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

Reply via email to