aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/Object.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-09-05 17:10:10 +0000
committerAdrian Prantl <aprantl@apple.com>2014-09-05 17:10:10 +0000
commite5e8ce64defb91011181ea6ef8abf0152dc07ee2 (patch)
tree31c1f7c34ca708cd24fb8d4f709e2b462e56390c /llvm/lib/Object/Object.cpp
parente2793c009e75ecf8ae7245bf240357b5427bd356 (diff)
downloadllvm-e5e8ce64defb91011181ea6ef8abf0152dc07ee2.zip
llvm-e5e8ce64defb91011181ea6ef8abf0152dc07ee2.tar.gz
llvm-e5e8ce64defb91011181ea6ef8abf0152dc07ee2.tar.bz2
Set the parent pointer of cloned DBG_VALUE instructions correctly.
Fixes PR20523. When spilling variables onto the stack, spillVirtReg() is setting the parent pointer of the cloned DBG_VALUE intrinsic for the stack location to the parent pointer of the original intrinsic. MachineInstr parent pointers should however always point to the parent basic block. MBB is shadowing the MBB member variable. The instruction still ends up being inserted into the right basic block, because it's inserted after MI which serves as the iterator. I failed at constructing a reliable testcase for this, see http://llvm.org/bugs/show_bug.cgi?id=20523 for a large testcases. llvm-svn: 217260
Diffstat (limited to 'llvm/lib/Object/Object.cpp')
0 files changed, 0 insertions, 0 deletions