aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Interfaces')
-rw-r--r--mlir/lib/Interfaces/DataLayoutInterfaces.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/mlir/lib/Interfaces/DataLayoutInterfaces.cpp b/mlir/lib/Interfaces/DataLayoutInterfaces.cpp
index 3b6330b..7823849 100644
--- a/mlir/lib/Interfaces/DataLayoutInterfaces.cpp
+++ b/mlir/lib/Interfaces/DataLayoutInterfaces.cpp
@@ -364,10 +364,7 @@ static DataLayoutSpecInterface getSpec(Operation *operation) {
return llvm::TypeSwitch<Operation *, DataLayoutSpecInterface>(operation)
.Case<ModuleOp, DataLayoutOpInterface>(
[&](auto op) { return op.getDataLayoutSpec(); })
- .Default([](Operation *) {
- llvm_unreachable("expected an op with data layout spec");
- return DataLayoutSpecInterface();
- });
+ .DefaultUnreachable("expected an op with data layout spec");
}
static TargetSystemSpecInterface getTargetSystemSpec(Operation *operation) {