[Mlir-commits] [mlir] dde9db5 - Unbreak Windows build

Sanjoy Das llvmlistbot at llvm.org
Thu Oct 13 11:32:58 PDT 2022


Author: Sanjoy Das
Date: 2022-10-13T11:21:43-07:00
New Revision: dde9db5f9313b4c63cd1c9a28d122dd5d9901737

URL: https://github.com/llvm/llvm-project/commit/dde9db5f9313b4c63cd1c9a28d122dd5d9901737
DIFF: https://github.com/llvm/llvm-project/commit/dde9db5f9313b4c63cd1c9a28d122dd5d9901737.diff

LOG: 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

Added: 
    

Modified: 
    mlir/lib/Transforms/Utils/SideEffectUtils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Transforms/Utils/SideEffectUtils.cpp b/mlir/lib/Transforms/Utils/SideEffectUtils.cpp
index cb981be9357a5..fcfdb7cc10c9e 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!");
 }


        


More information about the Mlir-commits mailing list