mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
Fix crashing on TargetCustom PseudoSourceValues
Default to something more reasonable if printCustom isn't implemented. llvm-svn: 298941
This commit is contained in:
parent
a9ea65ebd8
commit
a3fa896b52
@ -29,7 +29,10 @@ PseudoSourceValue::PseudoSourceValue(PSVKind Kind) : Kind(Kind) {}
|
|||||||
PseudoSourceValue::~PseudoSourceValue() {}
|
PseudoSourceValue::~PseudoSourceValue() {}
|
||||||
|
|
||||||
void PseudoSourceValue::printCustom(raw_ostream &O) const {
|
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 {
|
bool PseudoSourceValue::isConstant(const MachineFrameInfo *) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user