File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -186,12 +186,11 @@ class TextTokenRetokenizer {
186
186
if (Pos.BufferPtr + 1 == Pos.BufferEnd ) {
187
187
consumeChar ();
188
188
break ;
189
- } else {
190
- consumeChar ();
191
189
}
190
+ consumeChar ();
192
191
}
193
192
194
- const unsigned Length = WordText.size ();
193
+ unsigned Length = WordText.size ();
195
194
if (Length == 0 ) {
196
195
Pos = SavedPos;
197
196
return false ;
@@ -364,6 +363,7 @@ Parser::parseCommandArgs(TextTokenRetokenizer &Retokenizer, unsigned NumArgs) {
364
363
ArrayRef<Comment::Argument>
365
364
Parser::parseParCommandArgs (TextTokenRetokenizer &Retokenizer,
366
365
unsigned NumArgs) {
366
+ assert (NumArgs > 0 );
367
367
auto *Args = new (Allocator.Allocate <Comment::Argument>(NumArgs))
368
368
Comment::Argument[NumArgs];
369
369
unsigned ParsedArgs = 0 ;
You can’t perform that action at this time.
0 commit comments