[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 16:05:16 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGff56b7474f28: [flang] Add two llvm_unreachable() calls to new code to silence compiler warning (authored by klausler).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156745/new/

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.545846.patch
Type: text/x-patch
Size: 669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230731/3a03ee1d/attachment-0001.bin>


More information about the flang-commits mailing list