diff options
author | Vedant Kumar <vsk@apple.com> | 2017-01-30 23:58:51 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-01-30 23:58:51 +0000 |
commit | 359785ddad18f9cd0ab65bba19c9a12168f91489 (patch) | |
tree | 7db5159cf8fdc624932bc85e21c7d7c38f501cca | |
parent | d3a601b06b839e9cbbcdaf39478fe55024d90ac5 (diff) | |
download | bcm5719-llvm-359785ddad18f9cd0ab65bba19c9a12168f91489.tar.gz bcm5719-llvm-359785ddad18f9cd0ab65bba19c9a12168f91489.zip |
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.
llvm-svn: 293573
-rw-r--r-- | llvm/tools/llvm-readobj/WasmDumper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-readobj/WasmDumper.cpp b/llvm/tools/llvm-readobj/WasmDumper.cpp index 8f3ec575e47..020a014220a 100644 --- a/llvm/tools/llvm-readobj/WasmDumper.cpp +++ b/llvm/tools/llvm-readobj/WasmDumper.cpp @@ -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); |