[flang-commits] [flang] e51939e - [flang] Fix typo caught by clang build

peter klausler via flang-commits flang-commits at lists.llvm.org
Wed Apr 14 15:10:49 PDT 2021


Author: peter klausler
Date: 2021-04-14T15:10:40-07:00
New Revision: e51939eca63c33e4a57c9c1f4b7d3cd8216369d6

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

LOG: [flang] Fix typo caught by clang build

An inadvertent ! operator was (fortunately) flagged as a
warning by clang; remove it.

Differential Review: https://reviews.llvm.org/D100513

Added: 
    

Modified: 
    flang/runtime/io-error.cpp

Removed: 
    


################################################################################
diff  --git a/flang/runtime/io-error.cpp b/flang/runtime/io-error.cpp
index f73272ad6fed..9c4a5c7348df 100644
--- a/flang/runtime/io-error.cpp
+++ b/flang/runtime/io-error.cpp
@@ -23,7 +23,7 @@ void IoErrorHandler::SignalError(int iostatOrErrno, const char *msg, ...) {
       ioStat_ = IostatEnd;
     }
   } else if (iostatOrErrno == IostatEor && (flags_ & hasEor)) {
-    if (!ioStat_ == IostatOk || ioStat_ < IostatEor) {
+    if (ioStat_ == IostatOk || ioStat_ < IostatEor) {
       ioStat_ = IostatEor; // least priority
     }
   } else if (iostatOrErrno != IostatOk) {


        


More information about the flang-commits mailing list