[flang-commits] [flang] 1a7ed95 - [flang] Fix `flang` (the bash wrapper script for the Flang driver)

Andrzej Warzynski via flang-commits flang-commits at lists.llvm.org
Fri Jul 30 01:02:45 PDT 2021


Author: Andrzej Warzynski
Date: 2021-07-30T09:02:35+01:00
New Revision: 1a7ed9561a0391986a1a4861ce589bf3923a6a0b

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

LOG: [flang] Fix `flang` (the bash wrapper script for the Flang driver)

Remove erroneous `||` at the end of an `if` condition. This was
introduced in https://reviews.llvm.org/D106871.

Added: 
    

Modified: 
    flang/tools/f18/flang.in

Removed: 
    


################################################################################
diff  --git a/flang/tools/f18/flang.in b/flang/tools/f18/flang.in
index 165f01952b80e..284e89bd5e481 100755
--- a/flang/tools/f18/flang.in
+++ b/flang/tools/f18/flang.in
@@ -219,8 +219,7 @@ categorise_opts()
       [[ $opt =~ -I.* ]] ||
       [[ $opt =~ -J.* ]] ||
       [[ $opt == "-fopenmp" ]] ||
-      [[ $opt == "-fopenacc" ]] ||
-      ; then
+      [[ $opt == "-fopenacc" ]]; then
       flang_opts+=($opt)
       fc_opts+=($opt)
     else


        


More information about the flang-commits mailing list