Skip to content

Commit ff56b74

Browse files
committed
[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
1 parent 1a1a684 commit ff56b74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang/lib/Optimizer/Builder/PPCIntrinsicCall.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,7 @@ const char *getMmaIrIntrName(MMAOp mmaOp) {
12721272
case MMAOp::DisassemblePair:
12731273
return "llvm.ppc.vsx.disassemble.pair";
12741274
}
1275+
llvm_unreachable("getMmaIrIntrName");
12751276
}
12761277

12771278
mlir::FunctionType getMmaIrFuncType(mlir::MLIRContext *context, MMAOp mmaOp) {
@@ -1285,6 +1286,7 @@ mlir::FunctionType getMmaIrFuncType(mlir::MLIRContext *context, MMAOp mmaOp) {
12851286
case MMAOp::DisassemblePair:
12861287
return genMmaDisassembleFuncType(context, mmaOp);
12871288
}
1289+
llvm_unreachable("getMmaIrFuncType");
12881290
}
12891291

12901292
template <MMAOp IntrId, MMAHandlerOp HandlerOp>

0 commit comments

Comments
 (0)