]> granicus.if.org Git - llvm/commitdiff
Fix llvm-readobj build error after r293569
authorVedant Kumar <vsk@apple.com>
Mon, 30 Jan 2017 23:58:51 +0000 (23:58 +0000)
committerVedant Kumar <vsk@apple.com>
Mon, 30 Jan 2017 23:58:51 +0000 (23:58 +0000)
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

tools/llvm-readobj/WasmDumper.cpp

index 8f3ec575e47b6df0742d2c5c98d598f419f41f45..020a014220a816eaca9d3bf4b91fdf3f1052c667 100644 (file)
@@ -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);