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