Skip to content

Commit e67cd15

Browse files
committed
[llvm-size] Initialize Radix to correct value (#128447)
Without the patch, invalid --radix, makes Radix to be 0, and result in invalid format specifier ` %#7 `, instead of e.g ` %#7x `.
1 parent f58fde5 commit e67cd15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-size/llvm-size.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static std::vector<StringRef> ArchFlags;
7676
static bool ELFCommons;
7777
static OutputFormatTy OutputFormat;
7878
static bool DarwinLongFormat;
79-
static RadixTy Radix;
79+
static RadixTy Radix = RadixTy::decimal;
8080
static bool TotalSizes;
8181

8282
static std::vector<std::string> InputFilenames;

0 commit comments

Comments
 (0)