aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineLoopInfo.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-21 19:37:45 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-21 19:37:45 +0000
commit7b269642d232fadf5f2ce29ddc0fb9106edab8d3 (patch)
tree9b04b7a09a2a7ce3959358a5b6fe1216b7fe63b7 /llvm/lib/CodeGen/MachineLoopInfo.cpp
parent1b936c0f59b294a3353930a81172728641c4b024 (diff)
downloadllvm-7b269642d232fadf5f2ce29ddc0fb9106edab8d3.zip
llvm-7b269642d232fadf5f2ce29ddc0fb9106edab8d3.tar.gz
llvm-7b269642d232fadf5f2ce29ddc0fb9106edab8d3.tar.bz2
CodeGen: Avoid getNodePtrUnchecked() where we need a Value, NFC
`ilist_iterator<NodeTy>::getNodePtrUnchecked()` is documented as being for internal use only, but CodeGenPrepare was using it anyway. This code relies on pulling out the `Value*` pointer even after the lifetime of the iterator is over. But having this pointer available in ilist_iterator depends on UB in the first place. Instead, safely pull out the `Value*` when the iterator is alive and stop using the internal-only API. There should be no functionality change here. llvm-svn: 261493
Diffstat (limited to 'llvm/lib/CodeGen/MachineLoopInfo.cpp')
0 files changed, 0 insertions, 0 deletions