mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Remove early DCE of builtins
Early DCE was sometimes cleaning up functions that we actaully still needed. At some point we can come back to it and try to properly protect all special functions. Until then, this still enables DCE, but it runs later with the full generated Roc module.
This commit is contained in:
parent
3120dee509
commit
fb049b661a
2 changed files with 5 additions and 35 deletions
|
@ -80,10 +80,6 @@ pub(crate) fn add_intrinsics<'ctx>(ctx: &'ctx Context, module: &Module<'ctx>) {
|
|||
let i32_type = ctx.i32_type();
|
||||
let void_type = ctx.void_type();
|
||||
|
||||
if let Some(func) = module.get_function("__muloti4") {
|
||||
func.set_linkage(Linkage::WeakAny);
|
||||
}
|
||||
|
||||
add_intrinsic(
|
||||
ctx,
|
||||
module,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue