[llvm] [YAMLParser] Improve plain scalar spec compliance (PR #68946)
Scott Linder via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 17 09:22:20 PDT 2023
================
@@ -1848,13 +1869,15 @@ bool Scanner::fetchMoreTokens() {
if (*Current == ',')
return scanFlowEntry();
- if (*Current == '-' && isBlankOrBreak(Current + 1))
+ if (*Current == '-' && (isBlankOrBreak(Current + 1) || Current + 1 == End))
----------------
slinder1 wrote:
Ah, it makes sense now why there wasn't a new test; thank you for adding an explicit test for the shape of the result, I think that's an improvement regardless
https://github.com/llvm/llvm-project/pull/68946
More information about the llvm-commits
mailing list