Skip to content

Commit 0bf4d4f

Browse files
enkerewpojoaosaffran
authored andcommitted
[mlir][Tosa] Add unreachable case for bad Extension type in TosaProfileCompliance (llvm#128889)
add `llvm_unreachable` at the end of `getCooperativeProfiles` to eliminate compiler warning of "control reaches end of non-void function"
1 parent 84e1e22 commit 0bf4d4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ class TosaProfileCompliance {
148148
case Extension::none:
149149
return {};
150150
};
151+
llvm_unreachable("bad Extension type");
151152
}
152153

153154
// Debug utilites.

0 commit comments

Comments
 (0)