diff --git a/mlir/lib/Transforms/Utils/SideEffectUtils.cpp b/mlir/lib/Transforms/Utils/SideEffectUtils.cpp index cb981be9357a..fcfdb7cc10c9 100644 --- a/mlir/lib/Transforms/Utils/SideEffectUtils.cpp +++ b/mlir/lib/Transforms/Utils/SideEffectUtils.cpp @@ -55,4 +55,6 @@ bool mlir::isSpeculatable(Operation *op) { case Speculation::NotSpeculatable: return false; } + + llvm_unreachable("Unhandled enum in mlir::isSpeculatable!"); }