================
@@ -231,6 +232,9 @@ template <> struct MappingTraits<VirtualRegisterDefinition>
{
// so a plain mapOptional with an empty default would still emit the keys
// and change every existing test's output.
// Skip the call on output when empty to keep them off entirely.
+ if (!YamlIO.outputting() || !Reg.AntiHints.empty())
+ YamlIO.mapOptional("anti-hints", Reg.AntiHints,
+ std::vector<FlowStringValue>());
----------------
arsenm wrote:
```suggestion
{});
```
https://github.com/llvm/llvm-project/pull/218073
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits