[flang-commits] [PATCH] D100513: [flang] Fix typo caught by clang build

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Apr 14 15:03:29 PDT 2021


klausler created this revision.
klausler added a reviewer: kiranchandramohan.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.

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


https://reviews.llvm.org/D100513

Files:
  flang/runtime/io-error.cpp


Index: flang/runtime/io-error.cpp
===================================================================
--- flang/runtime/io-error.cpp
+++ flang/runtime/io-error.cpp
@@ -23,7 +23,7 @@
       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) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100513.337571.patch
Type: text/x-patch
Size: 489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210414/9ca54142/attachment.bin>


More information about the flang-commits mailing list