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) {
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);
}
}