aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2025-01-27 15:25:17 +0000
committerGitHub <noreply@github.com>2025-01-27 15:25:17 +0000
commite14962a39cc6476bebba65e5639b74b0318c7fc3 (patch)
tree2c5f513c4703b51bc8ea723fe2890910fe7b30e6 /clang/lib/CodeGen/CodeGenFunction.h
parent5aafc6d58f3405662902cee006be11e599801b88 (diff)
downloadllvm-e14962a39cc6476bebba65e5639b74b0318c7fc3.zip
llvm-e14962a39cc6476bebba65e5639b74b0318c7fc3.tar.gz
llvm-e14962a39cc6476bebba65e5639b74b0318c7fc3.tar.bz2
[NFC][DebugInfo] Use iterators for instruction insertion in more places (#124291)
As part of the "RemoveDIs" work to eliminate debug intrinsics, we're replacing methods that use Instruction*'s as positions with iterators. This patch changes some more complex call-sites, those crossing file boundaries and where I've had to perform some minor rewrites.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index fab27d4..bdd6e3b 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -451,7 +451,7 @@ public:
"EBB should be entry block of the current code gen function");
PostAllocaInsertPt = AllocaInsertPt->clone();
PostAllocaInsertPt->setName("postallocapt");
- PostAllocaInsertPt->insertAfter(AllocaInsertPt);
+ PostAllocaInsertPt->insertAfter(AllocaInsertPt->getIterator());
}
return PostAllocaInsertPt;