[all-commits] [llvm/llvm-project] 2f50b2: [DebugInfo] Enable deprecation of iterator-inserti...
Jeremy Morse via All-commits
all-commits at lists.llvm.org
Fri Sep 20 05:57:05 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2f50b280dc8e995ef67ad31a5f71adc4c270890d
https://github.com/llvm/llvm-project/commit/2f50b280dc8e995ef67ad31a5f71adc4c270890d
Author: Jeremy Morse <jeremy.morse at sony.com>
Date: 2024-09-20 (Fri, 20 Sep 2024)
Changed paths:
M llvm/examples/IRTransforms/SimplifyCFG.cpp
M llvm/include/llvm/IR/InstrTypes.h
M llvm/include/llvm/IR/Instruction.h
M llvm/lib/SandboxIR/SandboxIR.cpp
Log Message:
-----------
[DebugInfo] Enable deprecation of iterator-insertion methods (#102608)
This is an almost-final step in eliminating debug-intrinsics -- read more
about that here: https://llvm.org/docs/RemoveDIsDebugInfo.html . To
correctly update variable location information in the background when
inserting instructions, we need some information carried at runtime in
BasicBlock::iterator, hence deprecating pointer-insertion.
An immediate fix for any deprecation warnings is to call "getIterator"
on the insertion position pointer. If you intend on inserting at the start
of a block, use BB->begin() or similar methods to fetch the appropriate
iterator.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list