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

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


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

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

>From 1c1a0fc980b180669914756895d049096eb20ed8 Mon Sep 17 00:00:00 2001
From: Peter Steinfeld <psteinfeld at nvidia.com>
Date: Tue, 2 Jul 2024 10:37:02 -0700
Subject: [PATCH] [flang] Fix build problem caused by #96807

I had erroneously used a bitwise '&' with boolean operands which caused
a warning on the ARM build.  This change fixes that.
---
 flang/lib/Evaluate/intrinsics-library.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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