From 97b6b1b926588c0b8c91744bdb6d073f44b93f1b Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 9 Apr 2018 21:04:30 +0000 Subject: 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 --- llvm/lib/CodeGen/MachineFrameInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineFrameInfo.cpp') diff --git a/llvm/lib/CodeGen/MachineFrameInfo.cpp b/llvm/lib/CodeGen/MachineFrameInfo.cpp index 2aa9d6b816c..8c2b1921069 100644 --- a/llvm/lib/CodeGen/MachineFrameInfo.cpp +++ b/llvm/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"; -- cgit v1.2.3