r191424 - Fix buildbot breakage.
Richard Smith
richard-llvm at metafoo.co.uk
Wed Sep 25 22:57:04 PDT 2013
Author: rsmith
Date: Thu Sep 26 00:57:03 2013
New Revision: 191424
URL: http://llvm.org/viewvc/llvm-project?rev=191424&view=rev
Log:
Fix buildbot breakage.
Modified:
cfe/trunk/lib/Lex/LiteralSupport.cpp
Modified: cfe/trunk/lib/Lex/LiteralSupport.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/LiteralSupport.cpp?rev=191424&r1=191423&r2=191424&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/LiteralSupport.cpp (original)
+++ cfe/trunk/lib/Lex/LiteralSupport.cpp Thu Sep 26 00:57:03 2013
@@ -685,11 +685,11 @@ void NumericLiteralParser::checkSeparato
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),
More information about the cfe-commits
mailing list