[llvm-commits] [llvm] r95711 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
David Greene
greened at obbligato.org
Tue Feb 9 15:03:05 PST 2010
Author: greened
Date: Tue Feb 9 17:03:05 2010
New Revision: 95711
URL: http://llvm.org/viewvc/llvm-project?rev=95711&view=rev
Log:
Only dump output in debug mode.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=95711&r1=95710&r2=95711&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Tue Feb 9 17:03:05 2010
@@ -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);
}
}
More information about the llvm-commits
mailing list