diff --git a/lib/Conversion/TorchToLinalg/Reduction.cpp b/lib/Conversion/TorchToLinalg/Reduction.cpp index 80a77f66d..289851cd3 100644 --- a/lib/Conversion/TorchToLinalg/Reduction.cpp +++ b/lib/Conversion/TorchToLinalg/Reduction.cpp @@ -187,7 +187,7 @@ public: Value resultVal, predicate; if (inElementType.isa()) { arith::CmpFPredicate predType; - if constexpr (isMax) { + if (isMax) { predType = arith::CmpFPredicate::OGT; resultVal = rewriter.create( nestedLoc, newValue, oldValue); @@ -201,7 +201,7 @@ public: newValue, oldValue); } else { arith::CmpIPredicate predType; - if constexpr (isMax) { + if (isMax) { predType = arith::CmpIPredicate::sgt; resultVal = rewriter.create(nestedLoc, newValue, oldValue);