Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear the IRBuilder's insertion point after emitting a function.
The function might get finalized, invalidating the IP. However, in some cases this invalid IP may get saved and restored, accessing the invalid IP while doing so. Example code path accessing an invalid IP: -> jl_cfunction_object (nested_compile=true, but doesn't change IP) -> gen_cfun_wrapper -> jl_compile_linfo (saves and restores invalid IP) (cherry picked from commit ebd24a8, ref #18054)
- Loading branch information