Issue 149097
Summary [WebAssembly] Assertion failure at -O0
Labels backend:WebAssembly, crash
Assignees
Reporter nikic
    ```llvm
; 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.
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to