This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly][MC] Fix missing `else` after `return` due to type checker bug
ClosedPublic

Authored by sbc100 on Oct 4 2022, 2:01 PM.

Details

Summary

Once we are in the Unreachable we want to disable type checking, but
we were unconditionally returning true here which means we encountered
and error. Instead we unconditionally return false to signal no error.

Fixes: https://github.com/llvm/llvm-project/issues/56935

Diff Detail

Event Timeline

sbc100 created this revision.Oct 4 2022, 2:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 4 2022, 2:01 PM
Herald added subscribers: pmatos, asb, wingo and 5 others. · View Herald Transcript
sbc100 requested review of this revision.Oct 4 2022, 2:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 4 2022, 2:01 PM
dschuff accepted this revision.Oct 4 2022, 4:38 PM
dschuff added inline comments.
llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmTypeCheck.cpp
77
This revision is now accepted and ready to land.Oct 4 2022, 4:38 PM