[flang-commits] [PATCH] D156745: [flang] Add two llvm_unreachable() calls to new code to silence compiler warning

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Jul 31 14:42:47 PDT 2023


klausler created this revision.
klausler added a reviewer: clementval.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, mehdi_amini, jdoerfert, kbarton, nemanjai.
Herald added a project: All.
klausler requested review of this revision.

This gets our -Werror build working again.


https://reviews.llvm.org/D156745

Files:
  flang/lib/Optimizer/Builder/PPCIntrinsicCall.cpp


Index: flang/lib/Optimizer/Builder/PPCIntrinsicCall.cpp
===================================================================
--- flang/lib/Optimizer/Builder/PPCIntrinsicCall.cpp
+++ flang/lib/Optimizer/Builder/PPCIntrinsicCall.cpp
@@ -1272,6 +1272,7 @@
   case MMAOp::DisassemblePair:
     return "llvm.ppc.vsx.disassemble.pair";
   }
+  llvm_unreachable("getMmaIrIntrName");
 }
 
 mlir::FunctionType getMmaIrFuncType(mlir::MLIRContext *context, MMAOp mmaOp) {
@@ -1285,6 +1286,7 @@
   case MMAOp::DisassemblePair:
     return genMmaDisassembleFuncType(context, mmaOp);
   }
+  llvm_unreachable("getMmaIrFuncType");
 }
 
 template <MMAOp IntrId, MMAHandlerOp HandlerOp>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156745.545817.patch
Type: text/x-patch
Size: 669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230731/583fde35/attachment.bin>


More information about the flang-commits mailing list