Fix test failure introduced by r245521.
[oota-llvm.git] / lib / CodeGen / MIRPrinter.cpp
index e9ecba404b68ef6e762487ddf552e93dea0cf270..2440a4103d8f6381ca3207974cb3d32d51a10591 100644 (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));
 }