summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-09-17 20:03:03 +0000
committerDevang Patel <dpatel@apple.com>2007-09-17 20:03:03 +0000
commit77ae4d358f53085075d97bcd6cb2a04145c2f8b4 (patch)
tree664006d41637fd4aa7be36d23e44bb57bf85f81c /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentdd3015375c7afe8804ff03bfaaa276cf0eaa197d (diff)
downloadbcm5719-llvm-77ae4d358f53085075d97bcd6cb2a04145c2f8b4.tar.gz
bcm5719-llvm-77ae4d358f53085075d97bcd6cb2a04145c2f8b4.zip
This is not ideal but unbreaks build failure.
APInt::dump() is inside #ifndef NDEBUG, however SelectionDAG dump() routines are not. llvm-svn: 42047
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 3744c4ad663..5a518994a01 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3720,7 +3720,9 @@ void SDNode::dump(const SelectionDAG *G) const {
cerr << "<" << CSDN->getValueAPF().convertToDouble() << ">";
else {
cerr << "<APFloat(";
+#ifndef NDEBUG
CSDN->getValueAPF().convertToAPInt().dump();
+#endif
cerr << ")>";
}
} else if (const GlobalAddressSDNode *GADN =
OpenPOWER on IntegriCloud