[llvm] [SandboxIR] Switch more Instruction::create() functions to InsertPosition (PR #111075)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 3 17:16:07 PDT 2024
================
@@ -2891,7 +2891,8 @@ define void @foo(i1 %cond0, i1 %cond2) {
{
// Check unconditional BranchInst::create() InsertBefore.
- auto *Br = sandboxir::BranchInst::create(BB1, /*InsertBefore=*/Ret1, Ctx);
+ auto *Br = sandboxir::BranchInst::create(
+ BB1, /*InsertBefore=*/Ret1->getIterator(), Ctx);
----------------
vporpo wrote:
Ah yeah, there are a couple of them left, I forgot to fix them, thanks for noticing it!
https://github.com/llvm/llvm-project/pull/111075
More information about the llvm-commits
mailing list