We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 944bf0d commit b64f69cCopy full SHA for b64f69c
llvm/include/llvm/Support/YAMLTraits.h
@@ -904,7 +904,7 @@ class IO {
904
void mapOptionalWithContext(const char *Key, T &Val, Context &Ctx) {
905
if constexpr (has_SequenceTraits<T>::value) {
906
// omit key/value instead of outputting empty sequence
907
- if (this->canElideEmptySequence() && !(Val.begin() != Val.end()))
+ if (this->canElideEmptySequence() && Val.begin() == Val.end())
908
return;
909
}
910
this->processKey(Key, Val, false, Ctx);
0 commit comments