[flang-commits] [flang] bf5a2a9 - [flang] Fix build problem caused by #96807 (#97450)

via flang-commits flang-commits at lists.llvm.org
Tue Jul 2 10:46:18 PDT 2024


Author: Pete Steinfeld
Date: 2024-07-02T10:46:15-07:00
New Revision: bf5a2a99b186216e4126dae3b16851f16c50603f

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

LOG: [flang] Fix build problem caused by #96807 (#97450)

I had erroneously used a bitwise '&' with boolean operands which caused
a warning on the ARM build. This change fixes that.

Added: 
    

Modified: 
    flang/lib/Evaluate/intrinsics-library.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Evaluate/intrinsics-library.cpp b/flang/lib/Evaluate/intrinsics-library.cpp
index c3bd3a501c0c5..65636b9956e78 100644
--- a/flang/lib/Evaluate/intrinsics-library.cpp
+++ b/flang/lib/Evaluate/intrinsics-library.cpp
@@ -807,7 +807,7 @@ static bool VerifyAtan2LikeArguments(
 template <ArgumentVerifierFunc... F>
 static bool CombineVerifiers(
     const std::vector<Expr<SomeType>> &args, FoldingContext &context) {
-  return (... & F(args, context));
+  return (... && F(args, context));
 }
 
 /// Define argument names to be used error messages when the intrinsic have


        


More information about the flang-commits mailing list