[llvm] r293573 - Fix llvm-readobj build error after r293569
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 30 15:58:52 PST 2017
Author: vedantk
Date: Mon Jan 30 17:58:51 2017
New Revision: 293573
URL: http://llvm.org/viewvc/llvm-project?rev=293573&view=rev
Log:
Fix llvm-readobj build error after r293569
Clang complains about an ambiguous call to printNumber() because it
can't work out what size_t should convert to. I picked uint64_t.
Modified:
llvm/trunk/tools/llvm-readobj/WasmDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/WasmDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/WasmDumper.cpp?rev=293573&r1=293572&r2=293573&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/WasmDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/WasmDumper.cpp Mon Jan 30 17:58:51 2017
@@ -59,7 +59,7 @@ public:
DictScope SectionD(W, "Section");
const char *Type = wasmSectionTypeToString(WasmSec->Type);
W.printHex("Type", Type, WasmSec->Type);
- W.printNumber("Size", WasmSec->Content.size());
+ W.printNumber("Size", (uint64_t)WasmSec->Content.size());
W.printNumber("Offset", WasmSec->Offset);
if (WasmSec->Type == wasm::WASM_SEC_CUSTOM) {
W.printString("Name", WasmSec->Name);
More information about the llvm-commits
mailing list