Skip to content

Commit 119b9cd

Browse files
authored
[flang][omp] Heed valid build warning (#88015)
Address a bug found by a compiler warning, and thereby also fix -Werror builds.
1 parent 1e6ce5e commit 119b9cd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

flang/lib/Lower/OpenMP/ReductionProcessor.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,8 @@ mlir::Value
151151
ReductionProcessor::getReductionOperation(fir::FirOpBuilder &builder,
152152
mlir::Type type, mlir::Location loc,
153153
mlir::Value op1, mlir::Value op2) {
154-
assert(type.isIntOrIndexOrFloat() ||
155-
fir::isa_complex(type) &&
156-
"only integer, float and complex types are currently supported");
154+
assert((type.isIntOrIndexOrFloat() || fir::isa_complex(type)) &&
155+
"only integer, float and complex types are currently supported");
157156
if (type.isIntOrIndex())
158157
return builder.create<IntegerOp>(loc, op1, op2);
159158
if (fir::isa_real(type))

0 commit comments

Comments
 (0)