From f45a8841a1ab015eb9bff2021b5b88f14cabe6b4 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 9 Apr 2018 21:04:30 +0000 Subject: [PATCH] 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 --- lib/CodeGen/MachineFrameInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/MachineFrameInfo.cpp b/lib/CodeGen/MachineFrameInfo.cpp index 2aa9d6b816c..8c2b1921069 100644 --- a/lib/CodeGen/MachineFrameInfo.cpp +++ b/lib/CodeGen/MachineFrameInfo.cpp @@ -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(SO.StackID) << ' '; if (SO.Size == ~0ULL) { OS << "dead\n";