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