]> granicus.if.org Git - llvm/commitdiff
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.

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

lib/Target/AMDGPU/SIFoldOperands.cpp

index 6bd982be2062f49dba00ce08bddb6f48db3f859d..a54b628520cce7924b7bb89545451f29696d7943 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