Skip to content

Commit

Permalink
Unbreak Windows build
Browse files Browse the repository at this point in the history
Without the llvm_unreachable, Windows complains about not returning a
value from mlir::isSpeculatable on all paths.

Differential Revision: https://reviews.llvm.org/D135899
  • Loading branch information
Sanjoy Das committed Oct 13, 2022
1 parent 4d95f74 commit dde9db5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mlir/lib/Transforms/Utils/SideEffectUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,6 @@ bool mlir::isSpeculatable(Operation *op) {
case Speculation::NotSpeculatable:
return false;
}

llvm_unreachable("Unhandled enum in mlir::isSpeculatable!");
}

0 comments on commit dde9db5

Please sign in to comment.