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:
Alex Lorenz 2015-08-19 23:56:37 +00:00
parent e8a419727a
commit 81a3a8ea79

View File

@ -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));
}