forked from OSchip/llvm-project
Don't barf when dumping a constant that contains
a ginormous value (eg: i128 -1). llvm-svn: 53402
This commit is contained in:
parent
4603a2ae6b
commit
74f23ff45c
|
@ -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() << ">";
|
||||
|
|
Loading…
Reference in New Issue