[flang] Add two llvm_unreachable() calls to new code to silence compiler warning

This gets our -Werror build working again.

Differential Revision: https://reviews.llvm.org/D156745
This commit is contained in:
Peter Klausler
2023-07-31 11:31:21 -07:00
parent 1a1a68411d
commit ff56b7474f

View File

@@ -1272,6 +1272,7 @@ const char *getMmaIrIntrName(MMAOp mmaOp) {
case MMAOp::DisassemblePair:
return "llvm.ppc.vsx.disassemble.pair";
}
llvm_unreachable("getMmaIrIntrName");
}
mlir::FunctionType getMmaIrFuncType(mlir::MLIRContext *context, MMAOp mmaOp) {
@@ -1285,6 +1286,7 @@ mlir::FunctionType getMmaIrFuncType(mlir::MLIRContext *context, MMAOp mmaOp) {
case MMAOp::DisassemblePair:
return genMmaDisassembleFuncType(context, mmaOp);
}
llvm_unreachable("getMmaIrFuncType");
}
template <MMAOp IntrId, MMAHandlerOp HandlerOp>