[llvm] c344953 - Fix 01706e7 on 32-bit platforms
Derek Schuff via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 17:31:00 PST 2024
Author: Derek Schuff
Date: 2024-02-09T17:24:27-08:00
New Revision: c344953ae78b0e9545b7374a2bea35abaee18c38
URL: https://github.com/llvm/llvm-project/commit/c344953ae78b0e9545b7374a2bea35abaee18c38
DIFF: https://github.com/llvm/llvm-project/commit/c344953ae78b0e9545b7374a2bea35abaee18c38.diff
LOG: Fix 01706e7 on 32-bit platforms
Make the type match the printf format.
Added:
Modified:
llvm/tools/llvm-objdump/llvm-objdump.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp
index 0e4f4e1bf62dbf..948a5d74e1ab2b 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.cpp
+++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp
@@ -2949,7 +2949,8 @@ void Dumper::printSymbol(const SymbolRef &Symbol,
outs() << '\t' << format(Fmt, ELFSymbolRef(Symbol).getSize());
else if (O.isWasm())
outs() << '\t'
- << format(Fmt, cast<WasmObjectFile>(O).getSymbolSize(Symbol));
+ << format(Fmt, static_cast<uint64_t>(
+ cast<WasmObjectFile>(O).getSymbolSize(Symbol)));
if (O.isELF()) {
if (!SymbolVersions.empty()) {
More information about the llvm-commits
mailing list