Skip to content

Commit

Permalink
Fix llvm-readobj build error after r293569
Browse files Browse the repository at this point in the history
Clang complains about an ambiguous call to printNumber() because it
can't work out what size_t should convert to. I picked uint64_t.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293573 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
vedantk committed Jan 30, 2017
1 parent 2a3b42c commit af0fd67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/llvm-readobj/WasmDumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class WasmDumper : public ObjDumper {
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);
Expand Down

0 comments on commit af0fd67

Please sign in to comment.