[flang-commits] [flang] 5a6c38f - [flang] Fix build

peter klausler via flang-commits flang-commits at lists.llvm.org
Fri Sep 17 12:41:06 PDT 2021


Author: peter klausler
Date: 2021-09-17T12:39:38-07:00
New Revision: 5a6c38fbefba981d8e37d78b3d0d7a07d56d1160

URL: https://github.com/llvm/llvm-project/commit/5a6c38fbefba981d8e37d78b3d0d7a07d56d1160
DIFF: https://github.com/llvm/llvm-project/commit/5a6c38fbefba981d8e37d78b3d0d7a07d56d1160.diff

LOG: [flang] Fix build

An unused variable declaration from a recent change is eliciting
a fatal warning; remove it.

Added: 
    

Modified: 
    flang/lib/Parser/prescan.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Parser/prescan.cpp b/flang/lib/Parser/prescan.cpp
index 1408fdfaba440..0531ffd5315b2 100644
--- a/flang/lib/Parser/prescan.cpp
+++ b/flang/lib/Parser/prescan.cpp
@@ -319,7 +319,6 @@ void Prescanner::EnforceStupidEndStatementRules(const TokenSequence &tokens) {
   j += 3;
   static const char *const prefixes[]{"program", "subroutine", "function",
       "blockdata", "module", "submodule", nullptr};
-  CharBlock stmt{tokens.ToCharBlock()};
   bool isPrefix{j == n || !IsLegalInIdentifier(str[j])}; // prefix is END
   std::size_t endOfPrefix{j - 1};
   for (const char *const *p{prefixes}; *p; ++p) {


        


More information about the flang-commits mailing list