Skip to content

Commit 9052512

Browse files
committed
[Flang] Remove unnecessary static_assert
Certain compilers do not seem to like the static assert with a string, causing a implicit conversion. It can be removed as it should not be reachable and the mlir::failure should handle it correctly in case it is.
1 parent 8ca0364 commit 9052512

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

flang/lib/Optimizer/HLFIR/Transforms/OptimizedBufferization.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,6 @@ class ReductionElementalConversion : public mlir::OpRewritePattern<Op> {
750750
reduction);
751751
};
752752
} else {
753-
static_assert("Expected Op to be handled");
754753
return mlir::failure();
755754
}
756755

0 commit comments

Comments
 (0)