Only dump output in debug mode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95711 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Greene
2010-02-09 23:03:05 +00:00
parent 6b71653c82
commit 39143700a4

View File

@ -5224,11 +5224,12 @@ unsigned SelectionDAG::AssignTopologicalOrder() {
} }
} }
if (I == SortedPos) { if (I == SortedPos) {
allnodes_iterator J = I; #ifndef NDEBUG
SDNode *S = ++J; SDNode *S = ++I;
dbgs() << "Offending node:\n"; dbgs() << "Overran sorted position:\n";
S->dumprFull(); S->dumprFull();
assert(0 && "Overran sorted position"); #endif
llvm_unreachable(0);
} }
} }