forked from OSchip/llvm-project
parent
71e8bb6d1d
commit
99dc071104
|
@ -685,11 +685,11 @@ void NumericLiteralParser::checkSeparator(SourceLocation TokLoc,
|
|||
const char *Pos,
|
||||
CheckSeparatorKind IsAfterDigits) {
|
||||
if (IsAfterDigits == CSK_AfterDigits) {
|
||||
assert(Pos != ThisTokBegin);
|
||||
if (Pos == ThisTokBegin)
|
||||
return;
|
||||
--Pos;
|
||||
} else {
|
||||
assert(Pos != ThisTokEnd);
|
||||
}
|
||||
} else if (Pos == ThisTokEnd)
|
||||
return;
|
||||
|
||||
if (isDigitSeparator(*Pos))
|
||||
PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, Pos - ThisTokBegin),
|
||||
|
|
Loading…
Reference in New Issue