summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-11-23 21:51:05 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-11-23 21:51:05 +0000
commit391c3ea9bc0a728dad00d4e64cac852bf6d70a91 (patch)
treedf6635ccdc12ca2b7c5932b3b4062a1e42e7fbfe /llvm
parentd3a06ffb1ce4456984dac07eeb7e728b60b7e1b6 (diff)
downloadbcm5719-llvm-391c3ea9bc0a728dad00d4e64cac852bf6d70a91.tar.gz
bcm5719-llvm-391c3ea9bc0a728dad00d4e64cac852bf6d70a91.zip
AMDGPU: Fix debug printing
The uint8_t was printed as a char which didn't really work. llvm-svn: 287817
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/AMDGPU/SIFoldOperands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
index 6bd982be206..a54b628520c 100644
--- a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
+++ b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
@@ -562,7 +562,7 @@ bool SIFoldOperands::runOnMachineFunction(MachineFunction &MF) {
MRI.clearKillFlags(Fold.OpToFold->getReg());
}
DEBUG(dbgs() << "Folded source from " << MI << " into OpNo " <<
- Fold.UseOpNo << " of " << *Fold.UseMI << '\n');
+ static_cast<int>(Fold.UseOpNo) << " of " << *Fold.UseMI << '\n');
// Folding the immediate may reveal operations that can be constant
// folded or replaced with a copy. This can happen for example after
OpenPOWER on IntegriCloud