Skip to content

[WebAssembly] Assertion failure at -O0 #149097

@nikic

Description

@nikic
; RUN: llc -O0 < %s
target triple = "wasm32-unknown-unknown"

define void @test(i1 %x) {
  %y = xor i1 %x, true
  br i1 %y, label %exit, label %exit

exit:
  ret void
}
llc: /home/npopov/repos/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyDebugFixup.cpp:152: virtual bool (anonymous namespace)::WebAssemblyDebugFixup::runOnMachineFunction(MachineFunction &): Assertion `Stack.empty() && "WebAssemblyDebugFixup: Stack not empty at end of basic block!"' failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Needs Fix

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions