[llvm] r329622 - Fix printing of stack id in MachineFrameInfo
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 9 14:04:30 PDT 2018
Author: arsenm
Date: Mon Apr 9 14:04:30 2018
New Revision: 329622
URL: http://llvm.org/viewvc/llvm-project?rev=329622&view=rev
Log:
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.
Modified:
llvm/trunk/lib/CodeGen/MachineFrameInfo.cpp
Modified: llvm/trunk/lib/CodeGen/MachineFrameInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineFrameInfo.cpp?rev=329622&r1=329621&r2=329622&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineFrameInfo.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineFrameInfo.cpp Mon Apr 9 14:04:30 2018
@@ -217,7 +217,7 @@ void MachineFrameInfo::print(const Machi
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";
More information about the llvm-commits
mailing list