mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
Fix crashing on TargetCustom PseudoSourceValues
Default to something more reasonable if printCustom isn't implemented. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3812900a6d
commit
98ede9e115
@ -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
Block a user