Fix a bug in which node A is replaced by node B, but later
authorDuncan Sands <baldrick@free.fr>
Wed, 21 Nov 2007 16:43:19 +0000 (16:43 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 21 Nov 2007 16:43:19 +0000 (16:43 +0000)
commitbaccd5872e87adb0431ae3ebfa83719b97880808
tree8fc2c9d9030b7119ee82d8ef4a0f591810fd55f8
parent79a2c4f7a9bc6d825fc3402ab81ad35e9c3aac67
Fix a bug in which node A is replaced by node B, but later
node A gets back into the DAG again because it was hiding in
one of the node maps: make sure that node replacement happens
in those maps too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44263 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp
test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll [new file with mode: 0644]