summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-08-19 23:56:37 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-08-19 23:56:37 +0000
commitdbd22a9a6ca72af05b479378ad31f618ab06a819 (patch)
tree8f2a456f44c8b447e25923695f8e4c7a844fe9ae
parent3fc456d82659f09dd52dd043cf49223300209a54 (diff)
downloadbcm5719-llvm-dbd22a9a6ca72af05b479378ad31f618ab06a819.tar.gz
bcm5719-llvm-dbd22a9a6ca72af05b479378ad31f618ab06a819.zip
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. llvm-svn: 245523
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index e9ecba404b6..2440a4103d8 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -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));
}
OpenPOWER on IntegriCloud