don't have compiler generate setjmp/longjmp when building an executable

This commit is contained in:
Folkert 2021-08-17 22:42:03 +02:00
parent a12e18ca70
commit 367d08814d
6 changed files with 71 additions and 66 deletions

View file

@ -278,7 +278,7 @@ impl<'ctx> PointerToRefcount<'ctx> {
// build then block
{
builder.position_at_end(then_block);
if !env.leak {
if !env.is_gen_test {
let ptr = builder.build_pointer_cast(
refcount_ptr.value,
ctx.i8_type().ptr_type(AddressSpace::Generic),