diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-12-22 21:35:02 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-12-22 21:35:02 +0000 |
commit | d85498132f8b1242cd9dadf5a652f60e13ad2edf (patch) | |
tree | 1699adc27f4833c5b97c6cbb1ee1f5468eff2f74 /llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h | |
parent | 36eab808751ffc155e9c517f8ce3a76ce00e3e77 (diff) | |
download | bcm5719-llvm-d85498132f8b1242cd9dadf5a652f60e13ad2edf.tar.gz bcm5719-llvm-d85498132f8b1242cd9dadf5a652f60e13ad2edf.zip |
Allow 0 as an order number. Don't assign an order to formal arguments.
llvm-svn: 91920
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h b/llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h index 264753b6510..f88b26d5c42 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h +++ b/llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h @@ -34,7 +34,6 @@ public: SDNodeOrdering() {} void add(const SDNode *Node, unsigned O) { - assert(O && "Invalid ordering!"); OrderMap[Node] = O; } void remove(const SDNode *Node) { @@ -46,9 +45,7 @@ public: OrderMap.clear(); } unsigned getOrder(const SDNode *Node) { - unsigned Order = OrderMap[Node]; - assert(Order && "Node isn't in ordering map!"); - return Order; + return OrderMap[Node]; } }; |