[flang-commits] [flang] b41e866 - [flang][driver] Fix erroneous `&`

Andrzej Warzynski via flang-commits flang-commits at lists.llvm.org
Fri Oct 8 07:51:22 PDT 2021


Author: Andrzej Warzynski
Date: 2021-10-08T14:44:44Z
New Revision: b41e86642e16dffc90d037449a59cded72b2bd7f

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

LOG: [flang][driver] Fix erroneous `&`

As pointed out by Valentin Clement in PR [1], we should be using `&&`
instead of `&`.

[1] https://github.com/flang-compiler/f18-llvm-project/pull/1113#discussion_r724321121

Differential Revision: https://reviews.llvm.org/D111395

Added: 
    

Modified: 
    flang/lib/Frontend/FrontendActions.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Frontend/FrontendActions.cpp b/flang/lib/Frontend/FrontendActions.cpp
index b43cf086bcfce..4dc0c2c73a13e 100644
--- a/flang/lib/Frontend/FrontendActions.cpp
+++ b/flang/lib/Frontend/FrontendActions.cpp
@@ -37,7 +37,7 @@ bool PrescanAndParseAction::BeginSourceFileAction() {
 }
 
 bool PrescanAndSemaAction::BeginSourceFileAction() {
-  return RunPrescan() & RunParse() && RunSemanticChecks();
+  return RunPrescan() && RunParse() && RunSemanticChecks();
 }
 
 //===----------------------------------------------------------------------===//


        


More information about the flang-commits mailing list