OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b26999a
)
Fix printing of stack id in MachineFrameInfo
author
Matt Arsenault
<Matthew.Arsenault@amd.com>
Mon, 9 Apr 2018 21:04:30 +0000
(21:04 +0000)
committer
Matt 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineFrameInfo.cpp
b/lib/CodeGen/MachineFrameInfo.cpp
index
2aa9d6b
..
8c2b192
100644
(file)
--- 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<unsigned>(SO.StackID)
<< ' ';
if (SO.Size == ~0ULL) {
OS << "dead\n";