From: Matt Arsenault Date: Wed, 23 Nov 2016 21:51:05 +0000 (+0000) Subject: AMDGPU: Fix debug printing X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef977276542d9e01074f01c1dc3b8e6e257cc01b;p=llvm AMDGPU: Fix debug printing 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 --- diff --git a/lib/Target/AMDGPU/SIFoldOperands.cpp b/lib/Target/AMDGPU/SIFoldOperands.cpp index 6bd982be206..a54b628520c 100644 --- a/lib/Target/AMDGPU/SIFoldOperands.cpp +++ b/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(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