leaningtech / cheerp-meta

Cheerp - a C/C++ compiler for Web applications - compiles to WebAssembly and JavaScript
https://labs.leaningtech.com/cheerp
Other
1.03k stars 51 forks source link

Compilation Crash #128

Closed zyz9740 closed 2 years ago

zyz9740 commented 2 years ago

Maybe other one with infinite loop and printf, but this time conpilation crash occurs.

I submit the trigger directly. You can take a try.

crash-bug-10-11.zip

carlopi commented 2 years ago

I do reproduce, even with nightly version. This seems to be unconnected to #127.

The raised assertion is in the register allocator, here: https://github.com/leaningtech/cheerp-compiler/blob/master/llvm/lib/CheerpUtils/Registerize.cpp#L232, but will need to be further inspected.

carlopi commented 2 years ago

This is fixed in the currently live nightly version of Cheerp. Thanks for reporting this.