[llvm] r287817 - AMDGPU: Fix debug printing
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 23 13:51:05 PST 2016
Author: arsenm
Date: Wed Nov 23 15:51:05 2016
New Revision: 287817
URL: http://llvm.org/viewvc/llvm-project?rev=287817&view=rev
Log:
AMDGPU: Fix debug printing
The uint8_t was printed as a char which didn't really work.
Modified:
llvm/trunk/lib/Target/AMDGPU/SIFoldOperands.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIFoldOperands.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIFoldOperands.cpp?rev=287817&r1=287816&r2=287817&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIFoldOperands.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIFoldOperands.cpp Wed Nov 23 15:51:05 2016
@@ -562,7 +562,7 @@ bool SIFoldOperands::runOnMachineFunctio
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
More information about the llvm-commits
mailing list