summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2013-07-01 19:42:46 +0000
committerCameron Zwarich <zwarich@apple.com>2013-07-01 19:42:46 +0000
commit867bfcd546c1fffd20678dc31b04e9e94750c882 (patch)
tree100a24747560de6ad66013f65f1f51dab0bdff2f /lldb/source/Core/Module.cpp
parentef4129084a6cb66a2ef031ab54a8d5dd30757890 (diff)
downloadbcm5719-llvm-867bfcd546c1fffd20678dc31b04e9e94750c882.tar.gz
bcm5719-llvm-867bfcd546c1fffd20678dc31b04e9e94750c882.zip
Fix PR16508.
When phis get lowered, destination copies are inserted using an iterator that is determined once for all phis in the block, which BuildMI interprets as a request to insert an instruction directly before the iterator. In the case of a cyclic phi, source copies may also be inserted directly before this iterator, which can cause source copies to be inserted before destination copies. The fix is to keep an iterator to the last phi and then advance it while lowering each phi in order to insert destination copies directly after the phis. llvm-svn: 185363
Diffstat (limited to 'lldb/source/Core/Module.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud