Skip to content

Commit

Permalink
Fix test failure introduced by r245521.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hyp committed Aug 19, 2015
1 parent e8a4197 commit 81a3a8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/CodeGen/MIRPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 81a3a8e

Please sign in to comment.