Fix a bug in RemoveDeadNodes where it would crash when its "optional"
authorChris Lattner <sabre@nondot.org>
Wed, 17 Aug 2005 19:00:20 +0000 (19:00 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 17 Aug 2005 19:00:20 +0000 (19:00 +0000)
commit8b8749f367fd30a8a3d57284576a6d59b60b69eb
tree25fe74bfdf04fbed0f7fa4bc96601ddb735a7ad5
parent6542d950609208de3e1cde704c5f89aad864c0d9
Fix a bug in RemoveDeadNodes where it would crash when its "optional"
argument is not specified.

Implement ReplaceAllUsesWith.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22834 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp