mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
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
This commit is contained in:
parent
df99c29e7b
commit
e1d97b1a74
@ -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
Block a user