[Mlir-commits] [llvm] [mlir] eliminating g++ warnings (PR #105520)

Benjamin Maxwell llvmlistbot at llvm.org
Wed Aug 21 06:17:47 PDT 2024


================
@@ -137,6 +137,8 @@ static ArrayRef<TileMask> getMasks(ArmSMETileType type) {
   case ArmSMETileType::ZAQ:
     return ZA_Q_MASKS;
   }
+  assert("unknown type in getMasks" == nullptr);
+  return {};
----------------
MacDue wrote:

Can't this (and elsewhere) use `llvm_unreachable`? 
```suggestion
  llvm_unreachable("unknown type in getMasks"");
```


https://github.com/llvm/llvm-project/pull/105520


More information about the Mlir-commits mailing list