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

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


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-semantics

Author: Pete Steinfeld (psteinfeld)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/97450.diff


1 Files Affected:

- (modified) flang/lib/Evaluate/intrinsics-library.cpp (+1-1) 


``````````diff
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

``````````

</details>


https://github.com/llvm/llvm-project/pull/97450


More information about the flang-commits mailing list