nac3core, artiq: remove unnecessary ptr casts
This commit is contained in:
parent
6c485bc9dc
commit
f66f66b3a4
|
@ -150,11 +150,7 @@ impl<'ctx, 'a> CodeGenContext<'ctx, 'a> {
|
||||||
};
|
};
|
||||||
let actual_ptr_type =
|
let actual_ptr_type =
|
||||||
self.get_llvm_type(generator, ty).ptr_type(AddressSpace::Generic);
|
self.get_llvm_type(generator, ty).ptr_type(AddressSpace::Generic);
|
||||||
self.builder.build_bitcast(
|
actual_ptr_type.const_null().into()
|
||||||
self.ctx.i8_type().ptr_type(AddressSpace::Generic).const_null(),
|
|
||||||
actual_ptr_type,
|
|
||||||
"default_opt_none",
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue