[Mlir-commits] [mlir] [mlir][Tosa] Add unreachable case for bad Extension type in TosaProfileCompliance (PR #128889)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Feb 26 07:20:05 PST 2025


https://github.com/enkerewpo updated https://github.com/llvm/llvm-project/pull/128889

>From 3f828cb2df79ca7762a991e2b2aae6ecb6d399ec Mon Sep 17 00:00:00 2001
From: wheatfox <enkerewpo at hotmail.com>
Date: Wed, 26 Feb 2025 23:07:21 +0800
Subject: [PATCH] [mlir][Tosa] Add unreachable case for bad Extension type in
 TosaProfileCompliance

---
 mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h | 1 +
 1 file changed, 1 insertion(+)

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