[llvm] [SandboxIR] Implement UnreachableInst (PR #101856)
Julius Alexandre via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 4 19:09:54 PDT 2024
================
@@ -747,6 +747,38 @@ void StoreInst::dump() const {
}
#endif // NDEBUG
+UnreachableInst *UnreachableInst::create(Instruction *InsertBefore,
+ Context &Ctx) {
+ auto &Builder = Ctx.getLLVMIRBuilder();
+ Builder.SetInsertPoint(cast<llvm::Instruction>(InsertBefore->Val));
----------------
medievalghoul wrote:
> I noticed that this is wrong in a few places, I will push a fix at some point.
if it's okay with you, I can create a NFC pr for those changes.
https://github.com/llvm/llvm-project/pull/101856
More information about the llvm-commits
mailing list