[llvm] [SandboxIR] Switch more Instruction::create() functions to InsertPosition (PR #111075)
Jorge Gorbe Moya via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 3 16:39:38 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);
----------------
slackito wrote:
The `/*InsertBefore=*/` comment should now be `/*InsertPosition=*/`, right? Same for other occurrences in this PR.
https://github.com/llvm/llvm-project/pull/111075
More information about the llvm-commits
mailing list