[Mlir-commits] [mlir] aef16ed - [mlir][Tosa] Add unreachable case for bad Extension type in TosaProfileCompliance (#128889)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Feb 26 19:47:28 PST 2025
Author: wheatfox
Date: 2025-02-26T19:47:24-08:00
New Revision: aef16edb26b2e255b6c2beda8f03a70505ffb22a
URL: https://github.com/llvm/llvm-project/commit/aef16edb26b2e255b6c2beda8f03a70505ffb22a
DIFF: https://github.com/llvm/llvm-project/commit/aef16edb26b2e255b6c2beda8f03a70505ffb22a.diff
LOG: [mlir][Tosa] Add unreachable case for bad Extension type in TosaProfileCompliance (#128889)
add `llvm_unreachable` at the end of `getCooperativeProfiles` to
eliminate compiler warning of "control reaches end of non-void function"
Added:
Modified:
mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h b/mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h
index 064264e73c8af..969d06afc70d6 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h
@@ -148,6 +148,7 @@ class TosaProfileCompliance {
case Extension::none:
return {};
};
+ llvm_unreachable("bad Extension type");
}
// Debug utilites.
More information about the Mlir-commits
mailing list