summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-07-10 11:23:14 +0000
committerDuncan Sands <baldrick@free.fr>2008-07-10 11:23:14 +0000
commit74f23ff45c80f780570734acd7b9744afa008375 (patch)
treefce24c53f463ff0d3687776bd633aab3712fed10 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent4603a2ae6bb802f8973b77934867598a8eccf51e (diff)
downloadbcm5719-llvm-74f23ff45c80f780570734acd7b9744afa008375.tar.gz
bcm5719-llvm-74f23ff45c80f780570734acd7b9744afa008375.zip
Don't barf when dumping a constant that contains
a ginormous value (eg: i128 -1). llvm-svn: 53402
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index d98f1fa215a..db315380865 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -4826,7 +4826,7 @@ void SDNode::dump(const SelectionDAG *G) const {
}
if (const ConstantSDNode *CSDN = dyn_cast<ConstantSDNode>(this)) {
- cerr << "<" << CSDN->getValue() << ">";
+ cerr << "<" << CSDN->getAPIntValue().toStringUnsigned() << ">";
} else if (const ConstantFPSDNode *CSDN = dyn_cast<ConstantFPSDNode>(this)) {
if (&CSDN->getValueAPF().getSemantics()==&APFloat::IEEEsingle)
cerr << "<" << CSDN->getValueAPF().convertToFloat() << ">";
OpenPOWER on IntegriCloud