diff options
author | Duncan Sands <baldrick@free.fr> | 2008-07-10 11:23:14 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-07-10 11:23:14 +0000 |
commit | e1d97b1a748e96d5ca479c38cfd1775d6469bf80 (patch) | |
tree | e0bfcf90f38381bbe02e9a875207c61a64a0d95b /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | df99c29e7b25771d202b969ca5dec359a62897b1 (diff) |
Don't barf when dumping a constant that contains
a ginormous value (eg: i128 -1).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53402 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index d98f1fa215..db31538086 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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() << ">"; |