[llvm] [DebugInfo][RemoveDIs] Have getInsertionPtAfterDef return an iterator (PR #73149)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 01:50:04 PST 2023
================
@@ -685,8 +699,9 @@ Value *GuardWideningImpl::freezeAndPush(Value *Orig, Instruction *InsertPt) {
Value *Result = Orig;
for (Value *V : NeedFreeze) {
- auto *FreezeInsertPt = getFreezeInsertPt(V, DT);
- FreezeInst *FI = new FreezeInst(V, V->getName() + ".gw.fr", FreezeInsertPt);
+ auto FreezeInsertPt = *getFreezeInsertPt(V, DT);
----------------
OCHyams wrote:
nit: used auto here but BasicBlock::iterator above
https://github.com/llvm/llvm-project/pull/73149
More information about the llvm-commits
mailing list