summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2017-03-23 15:46:47 +0000
committerDerek Schuff <dschuff@google.com>2017-03-23 15:46:47 +0000
commit9a4e45a0ed1473caad64f4b7b8299e011d1458a8 (patch)
tree6c2cbf13ce640a7aee62b314eb56b10946664d36 /llvm/lib/MC
parent8db22f9032e90e5c4d742d990fb71919deca8608 (diff)
downloadbcm5719-llvm-9a4e45a0ed1473caad64f4b7b8299e011d1458a8.tar.gz
bcm5719-llvm-9a4e45a0ed1473caad64f4b7b8299e011d1458a8.zip
[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 llvm-svn: 298612
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/WasmObjectWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp
index 86185b9e0ce..0b703f4387b 100644
--- a/llvm/lib/MC/WasmObjectWriter.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud