diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-04-09 21:04:30 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-04-09 21:04:30 +0000 |
commit | 97b6b1b926588c0b8c91744bdb6d073f44b93f1b (patch) | |
tree | 3eaa943339bf6abcf8a7088f41e7f4d555fe62a5 /llvm/lib/CodeGen/MachineFrameInfo.cpp | |
parent | 43af17be4122a9254d3262f77c041c1c7dbd491a (diff) | |
download | bcm5719-llvm-97b6b1b926588c0b8c91744bdb6d073f44b93f1b.tar.gz bcm5719-llvm-97b6b1b926588c0b8c91744bdb6d073f44b93f1b.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/MachineFrameInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFrameInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<unsigned>(SO.StackID) << ' '; if (SO.Size == ~0ULL) { OS << "dead\n"; |