OSDN Git Service

Fix printing of stack id in MachineFrameInfo
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 9 Apr 2018 21:04:30 +0000 (21:04 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 9 Apr 2018 21:04:30 +0000 (21:04 +0000)
uint8_t is printed as a char, so it needs to be
casted to do the right thing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329622 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineFrameInfo.cpp

index 2aa9d6b..8c2b192 100644 (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";