diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-11 17:46:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-11 17:46:28 +0000 |
commit | b9ea4a39b8192bd13d69d5e15d1e6a2290d24e80 (patch) | |
tree | f294b20658a8f26de580f4ea1da813e95cc45df1 /lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 246db8de3dbb65f4017a2378c5b6d794fec969ab (diff) |
Change one ReplaceAllUsesWith method to take an array of operands to replace
instead of a vector of operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29616 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index aa325b3ba4..0e7cc2ee1d 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -81,7 +81,7 @@ namespace { std::cerr << "\nWith: "; To[0].Val->dump(&DAG); std::cerr << " and " << To.size()-1 << " other values\n"); std::vector<SDNode*> NowDead; - DAG.ReplaceAllUsesWith(N, To, &NowDead); + DAG.ReplaceAllUsesWith(N, &To[0], &NowDead); // Push the new nodes and any users onto the worklist for (unsigned i = 0, e = To.size(); i != e; ++i) { @@ -416,7 +416,8 @@ void DAGCombiner::Run(bool RunningAfterLegalize) { std::cerr << "\nWith: "; RV.Val->dump(&DAG); std::cerr << '\n'); std::vector<SDNode*> NowDead; - DAG.ReplaceAllUsesWith(N, std::vector<SDOperand>(1, RV), &NowDead); + SDOperand OpV = RV; + DAG.ReplaceAllUsesWith(N, &OpV, &NowDead); // Push the new node and any users onto the worklist WorkList.push_back(RV.Val); |