TheDan64 / inkwell

It's a New Kind of Wrapper for Exposing LLVM (Safely)
https://thedan64.github.io/inkwell/
Apache License 2.0
2.38k stars 229 forks source link

builder.get_insert_block occasionally triggers assert failed #395

Open Chronostasys opened 1 year ago

Chronostasys commented 1 year ago

Describe the Bug Calling builder.get_insert_block occasionally triggers assert failed in inkwell-0.1.0\src\basic_block.rs:40

To Reproduce I failed to reproduce it in a simple test project. For the original stack trace please see here

Expected Behavior no panic

LLVM Version (please complete the following information):

Desktop (please complete the following information):

this issue seems to only happen on windows platform. I tested the same code on linux and mac, everything works as expected.

Additional Context This issue starts to occure after I updated inkwell to version 0.1.0.