[llvm] [SandboxIR] Implement UnreachableInst (PR #101856)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 3 21:43:58 PDT 2024


================
@@ -952,6 +957,44 @@ class StoreInst final : public Instruction {
 #endif
 };
 
+class UnreachableInst final : public Instruction {
+  /// Use UnreachableInst::create() instead of calling the constructor.
+  UnreachableInst(llvm::Instruction *I, Context &Ctx)
----------------
vporpo wrote:

The first argument should be an `llvm::UnreachableInst *`.

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


More information about the llvm-commits mailing list