Skip to content

Commit 3ce67a8

Browse files
committed
[TableGen] Remove unnecessary use of utostr to print a byte. NFC
We can cast to unsigned instead.
1 parent f457c56 commit 3ce67a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/DecoderEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ void DecoderEmitter::emitTable(formatted_raw_ostream &OS, DecoderTable &Table,
829829
OS << (unsigned)Byte << ", ";
830830
NumToSkip |= Byte << 8;
831831
Byte = *I++;
832-
OS << utostr(Byte) << ", ";
832+
OS << (unsigned)(Byte) << ", ";
833833
NumToSkip |= Byte << 16;
834834
return NumToSkip;
835835
};

0 commit comments

Comments
 (0)