forked from OSchip/llvm-project
Fix crashing on TargetCustom PseudoSourceValues
Default to something more reasonable if printCustom isn't implemented. llvm-svn: 298941
This commit is contained in:
parent
3230e4be11
commit
323b021b5e
|
@ -29,7 +29,10 @@ PseudoSourceValue::PseudoSourceValue(PSVKind Kind) : Kind(Kind) {}
|
|||
PseudoSourceValue::~PseudoSourceValue() {}
|
||||
|
||||
void PseudoSourceValue::printCustom(raw_ostream &O) const {
|
||||
O << PSVNames[Kind];
|
||||
if (Kind < TargetCustom)
|
||||
O << PSVNames[Kind];
|
||||
else
|
||||
O << "TargetCustom" << Kind;
|
||||
}
|
||||
|
||||
bool PseudoSourceValue::isConstant(const MachineFrameInfo *) const {
|
||||
|
|
Loading…
Reference in New Issue