From dde9db5f9313b4c63cd1c9a28d122dd5d9901737 Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Thu, 13 Oct 2022 11:09:09 -0700 Subject: [PATCH] Unbreak Windows build Without the llvm_unreachable, Windows complains about not returning a value from mlir::isSpeculatable on all paths. Differential Revision: https://reviews.llvm.org/D135899 --- mlir/lib/Transforms/Utils/SideEffectUtils.cpp | 2 ++ 1 file changed, 2 insertions(+) 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!"); }