1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Fix printing of stack id in MachineFrameInfo

uint8_t is printed as a char, so it needs to be
casted to do the right thing.

llvm-svn: 329622
This commit is contained in:
Matt Arsenault 2018-04-09 21:04:30 +00:00
parent 6a4a0be88f
commit f45a8841a1

View File

@ -217,7 +217,7 @@ void MachineFrameInfo::print(const MachineFunction &MF, raw_ostream &OS) const{
OS << " fi#" << (int)(i-NumFixedObjects) << ": ";
if (SO.StackID != 0)
OS << "id=" << SO.StackID << ' ';
OS << "id=" << static_cast<unsigned>(SO.StackID) << ' ';
if (SO.Size == ~0ULL) {
OS << "dead\n";