This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Fix return type of nextByte
ClosedPublic

Authored by tlively on Nov 15 2018, 9:32 AM.

Details

Summary

The old return type did not allow for correct error reporting and was
causing a compiler warning.

Diff Detail

Repository
rL LLVM

Event Timeline

tlively created this revision.Nov 15 2018, 9:32 AM
sbc100 accepted this revision.Nov 15 2018, 10:43 AM
sbc100 added inline comments.
lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp
124 ↗(On Diff #174227)

I know its not really part of this change, but IIUC this is considered overuse of auto in the llvm style. auto is only supposed to be used in cases where the type would otherwise be redundant (i.e. cast<>, dyn_cast<>, make_unique<> etc).

This revision is now accepted and ready to land.Nov 15 2018, 10:43 AM
This revision was automatically updated to reflect the committed changes.