mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-08 04:51:23 +00:00
Fix test failure introduced by r245521.
Machine memory operands can contain pointer values that are constants, and the 'getLocalSlot' method requires non-constant values. The constant pointer values will have to be serialized in a different patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245523 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e8a419727a
commit
81a3a8ea79
@ -614,6 +614,12 @@ void MIPrinter::printIRValueReference(const Value &V) {
|
||||
printLLVMNameWithoutPrefix(OS, V.getName());
|
||||
return;
|
||||
}
|
||||
if (isa<Constant>(V)) {
|
||||
// Machine memory operands can load/store to/from constant value pointers.
|
||||
// TODO: Serialize the constant values.
|
||||
OS << "<unserializable ir value>";
|
||||
return;
|
||||
}
|
||||
printIRSlotNumber(OS, MST.getLocalSlot(&V));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user