AMDGPU: Fix debug printing
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 23 Nov 2016 21:51:05 +0000 (21:51 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 23 Nov 2016 21:51:05 +0000 (21:51 +0000)
The uint8_t was printed as a char which didn't really work.

llvm-svn: 287817

llvm/lib/Target/AMDGPU/SIFoldOperands.cpp

index 6bd982b..a54b628 100644 (file)
@@ -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