Skip to content

Commit 2da53ca

Browse files
committed
[TableGen] Make variable type explicit
1 parent e0854e0 commit 2da53ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ MatchTableRecord MatchTable::IntValue(unsigned NumBytes, int64_t IntValue) {
240240
uint64_t UIntValue = IntValue;
241241
if (NumBytes < 8)
242242
UIntValue &= (UINT64_C(1) << NumBytes * 8) - 1;
243-
auto Str = llvm::to_string(UIntValue);
243+
std::string Str = llvm::to_string(UIntValue);
244244
// TODO: Could optimize this directly to save the compiler some work when
245245
// building the file
246246
return MatchTableRecord(std::nullopt, Str, NumBytes,

0 commit comments

Comments
 (0)