From 99dc071104cff6756844ce479887c1e9734285cb Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 26 Sep 2013 05:57:03 +0000 Subject: [PATCH] Fix buildbot breakage. llvm-svn: 191424 --- clang/lib/Lex/LiteralSupport.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/lib/Lex/LiteralSupport.cpp b/clang/lib/Lex/LiteralSupport.cpp index fce3ff3f5fa0..61f1d55a0edf 100644 --- a/clang/lib/Lex/LiteralSupport.cpp +++ b/clang/lib/Lex/LiteralSupport.cpp @@ -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),