[all-commits] [llvm/llvm-project] c92d45: [WebAssembly] Fix typechecking for else MCInst

Paulo Matos via All-commits all-commits at lists.llvm.org
Thu Dec 16 02:24:49 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c92d45913c43f0c03633ed5b2da0d568b3dbc5b1
      https://github.com/llvm/llvm-project/commit/c92d45913c43f0c03633ed5b2da0d568b3dbc5b1
  Author: Paulo Matos <pmatos at igalia.com>
  Date:   2021-12-16 (Thu, 16 Dec 2021)

  Changed paths:
    M llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmTypeCheck.cpp
    M llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmTypeCheck.h
    A llvm/test/MC/WebAssembly/typechecking-else.s

  Log Message:
  -----------
  [WebAssembly] Fix typechecking for else MCInst

When hitting an else clause the type Stack should be reset to as it was at the start of the if, without taking into account the Type inserted into the Stack during the then branch of the if.

Reviewed By: aardappel

Differential Revision: https://reviews.llvm.org/D115748




More information about the All-commits mailing list