nac3core, artiq: remove unnecessary ptr casts

This commit is contained in:
ychenfo 2022-04-09 04:18:27 +08:00
parent 6c485bc9dc
commit f66f66b3a4
1 changed files with 1 additions and 5 deletions

View File

@ -150,11 +150,7 @@ impl<'ctx, 'a> CodeGenContext<'ctx, 'a> {
};
let actual_ptr_type =
self.get_llvm_type(generator, ty).ptr_type(AddressSpace::Generic);
self.builder.build_bitcast(
self.ctx.i8_type().ptr_type(AddressSpace::Generic).const_null(),
actual_ptr_type,
"default_opt_none",
)
actual_ptr_type.const_null().into()
}
}
}