summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineCopyPropagation.cpp
diff options
context:
space:
mode:
authorDmitry Mikulin <dmitry.mikulin@sony.com>2017-11-17 00:30:24 +0000
committerDmitry Mikulin <dmitry.mikulin@sony.com>2017-11-17 00:30:24 +0000
commit2f2ace985de421f9a4ff793ae2520ae91ecd4f0a (patch)
tree1c3cca3fa7960555f5442b8c3d62c1db2bebff24 /llvm/lib/CodeGen/MachineCopyPropagation.cpp
parent6497193cfe221c51a55983e875bf7744cc859943 (diff)
downloadbcm5719-llvm-2f2ace985de421f9a4ff793ae2520ae91ecd4f0a.tar.gz
bcm5719-llvm-2f2ace985de421f9a4ff793ae2520ae91ecd4f0a.zip
Current implementation of Value::replaceUsesExceptBlockAddr() uses UseList
iterator to walk the list which keeps changing inside the loop. When the UseList contains several uses with the same user, we end processing the same user more than once, which leads to an assert. With this fix, unique users are saved and processed later to avoid processing duplicates. Differential Revision: https://reviews.llvm.org/D39864 llvm-svn: 318477
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud