diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index b7dda01a0a1..b053a3c25aa 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -427,9 +427,9 @@ public: unsigned AssignNodeIds(); /// AssignTopologicalOrder - Assign a unique node id for each node in the DAG - /// based on their topological order. It returns a vector of the SDNodes* in - /// assigned order. - std::vector AssignTopologicalOrder(); + /// based on their topological order. It returns the maximum id and a vector + /// of the SDNodes* in assigned order by reference. + unsigned AssignTopologicalOrder(std::vector &TopOrder); void dump() const;