[flang] Adjust CHECK() so that first token of program can begin with first character.
authorpeter klausler <pklausler@nvidia.com>
Tue, 13 Feb 2018 18:35:16 +0000 (10:35 -0800)
committerGitHub <noreply@github.com>
Thu, 15 Feb 2018 23:58:44 +0000 (15:58 -0800)
Original-commit: flang-compiler/f18@2b77e466ffaf3620638e166116a39d0f5bf09224
Reviewed-on: https://github.com/flang-compiler/f18/pull/9
Tree-same-pre-rewrite: false

flang/lib/parser/prescan.cc

index eddf483..14c15ed 100644 (file)
@@ -168,7 +168,7 @@ static inline bool IsNameChar(char ch) {
 }
 
 bool Prescanner::NextToken(TokenSequence *tokens) {
-  CHECK(at_ > start_ && at_ < limit_);  // TODO pmk
+  CHECK(at_ >= start_ && at_ < limit_);  // TODO pmk rm?
   if (inFixedForm_) {
     SkipSpaces();
   } else if (*at_ == ' ' || *at_ == '\t') {