summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2017-01-30 18:29:46 +0000
committerJustin Bogner <mail@justinbogner.com>2017-01-30 18:29:46 +0000
commit8f520a73b2b7c721c494662949ca9dde1e013bad (patch)
treecb12ff6e02df13d38b57024fb7ab507546e066b7 /llvm/lib/Transforms
parent7ac943c46344ef4c40096fc161ec913c733cdffc (diff)
downloadbcm5719-llvm-8f520a73b2b7c721c494662949ca9dde1e013bad.tar.gz
bcm5719-llvm-8f520a73b2b7c721c494662949ca9dde1e013bad.zip
SDAG: Update ChainNodesMatched during UpdateChains if a node is replaced
Previously, we would hit UB (or the ISD::DELETED_NODE assert) if we happened to replace a node during UpdateChains, because it would be left in the list we were iterating over. This nulls out the pointer when that happens so that we can avoid the issue. Fixes llvm.org/PR31710 llvm-svn: 293522
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud