commit | 39143700a41cc450252bf2e0b000ce1dd723eb0c | [log] [tgz] |
---|---|---|
author | David Greene <greened@obbligato.org> | Tue Feb 09 23:03:05 2010 +0000 |
committer | David Greene <greened@obbligato.org> | Tue Feb 09 23:03:05 2010 +0000 |
tree | e6ba184f63da8e0e7566df617bd75b238982a37a | |
parent | 6b71653c82f86626f64356c308d7356a17b05834 [diff] [blame] |
Only dump output in debug mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95711 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 1b4f999..6122a2a 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -5224,11 +5224,12 @@ } } if (I == SortedPos) { - allnodes_iterator J = I; - SDNode *S = ++J; - dbgs() << "Offending node:\n"; +#ifndef NDEBUG + SDNode *S = ++I; + dbgs() << "Overran sorted position:\n"; S->dumprFull(); - assert(0 && "Overran sorted position"); +#endif + llvm_unreachable(0); } }