Fix buildbot breakage.

llvm-svn: 191424
This commit is contained in:
Richard Smith 2013-09-26 05:57:03 +00:00
parent 71e8bb6d1d
commit 99dc071104
1 changed files with 4 additions and 4 deletions

View File

@ -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),