From: Derek Schuff Date: Thu, 23 Mar 2017 15:46:47 +0000 (+0000) Subject: [WebAssembly] Fix import type to be signed LEBs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cdcf70c24984ee2c840c9beb1a36455d2d9fafaf;p=llvm [WebAssembly] Fix import type to be signed LEBs This fix is a follow up a previous change with stored value types as signed integers in memory. In future, once the yaml<->wasm binary patche lands we can add test coverage for this kind of thing. Differential Revision: https://reviews.llvm.org/D31227 Patch by Sam Clegg git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298612 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/WasmObjectWriter.cpp b/lib/MC/WasmObjectWriter.cpp index 86185b9e0ce..0b703f4387b 100644 --- a/lib/MC/WasmObjectWriter.cpp +++ b/lib/MC/WasmObjectWriter.cpp @@ -338,7 +338,7 @@ struct WasmImport { StringRef ModuleName; StringRef FieldName; unsigned Kind; - uint32_t Type; + int32_t Type; }; // A wasm function to be written into the function section.