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 @@ -259,12 +259,11 @@ class TextTokenRetokenizer {
259
259
if (Pos.BufferPtr + 1 == Pos.BufferEnd ) {
260
260
consumeChar ();
261
261
break ;
262
- } else {
263
- consumeChar ();
264
262
}
263
+ consumeChar ();
265
264
}
266
265
267
- const unsigned Length = WordText.size ();
266
+ unsigned Length = WordText.size ();
268
267
if (Length == 0 ) {
269
268
Pos = SavedPos;
270
269
return false ;
@@ -454,6 +453,7 @@ Parser::parseThrowCommandArgs(TextTokenRetokenizer &Retokenizer,
454
453
ArrayRef<Comment::Argument>
455
454
Parser::parseParCommandArgs (TextTokenRetokenizer &Retokenizer,
456
455
unsigned NumArgs) {
456
+ assert (NumArgs > 0 );
457
457
auto *Args = new (Allocator.Allocate <Comment::Argument>(NumArgs))
458
458
Comment::Argument[NumArgs];
459
459
unsigned ParsedArgs = 0 ;
You can’t perform that action at this time.
0 commit comments