This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Fix some broken type encodings in wasm binary
ClosedPublic

Authored by sbc100 on Mar 15 2017, 4:45 PM.

Details

Summary

A recent change switch the in-memory wasm value types
to be signed integers, but I missing a few cases where
these were being writing to the binary.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Mar 15 2017, 4:45 PM
sunfish accepted this revision.Mar 15 2017, 4:50 PM

lgtm

lib/Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.h
55 ↗(On Diff #91958)

It looks like this function can have be marked protected.

This revision is now accepted and ready to land.Mar 15 2017, 4:50 PM
sbc100 updated this revision to Diff 92024.Mar 16 2017, 11:08 AM
  • make emitValueType protected
dschuff accepted this revision.Mar 16 2017, 1:56 PM
This revision was automatically updated to reflect the committed changes.