diff --git a/lib/CodeGen/MIRPrinter.cpp b/lib/CodeGen/MIRPrinter.cpp index e9ecba404b68..2440a4103d8f 100644 --- a/lib/CodeGen/MIRPrinter.cpp +++ b/lib/CodeGen/MIRPrinter.cpp @@ -614,6 +614,12 @@ void MIPrinter::printIRValueReference(const Value &V) { printLLVMNameWithoutPrefix(OS, V.getName()); return; } + if (isa(V)) { + // Machine memory operands can load/store to/from constant value pointers. + // TODO: Serialize the constant values. + OS << ""; + return; + } printIRSlotNumber(OS, MST.getLocalSlot(&V)); }