[flang-commits] [flang] 850a2e6 - [flang] Fix compiler warning (#99306)

via flang-commits flang-commits at lists.llvm.org
Wed Jul 17 09:06:00 PDT 2024


Author: Tom Eccles
Date: 2024-07-17T17:05:55+01:00
New Revision: 850a2e68749266ae0944a27fedf81c6f68d5a2c4

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

LOG: [flang] Fix compiler warning (#99306)

Added: 
    

Modified: 
    flang/lib/Optimizer/Builder/IntrinsicCall.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Optimizer/Builder/IntrinsicCall.cpp b/flang/lib/Optimizer/Builder/IntrinsicCall.cpp
index e12e21bb00e15..ba71fb3b4040c 100644
--- a/flang/lib/Optimizer/Builder/IntrinsicCall.cpp
+++ b/flang/lib/Optimizer/Builder/IntrinsicCall.cpp
@@ -6148,7 +6148,7 @@ IntrinsicLibrary::genScan(mlir::Type resultType,
 fir::ExtendedValue
 IntrinsicLibrary::genSecond(std::optional<mlir::Type> resultType,
                             mlir::ArrayRef<fir::ExtendedValue> args) {
-  assert(args.size() == 1 && !resultType || args.empty() && resultType);
+  assert((args.size() == 1 && !resultType) || (args.empty() && resultType));
 
   fir::ExtendedValue result;
 


        


More information about the flang-commits mailing list