Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/Lean/Compiler/IR.lean
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public import Lean.Compiler.IR.CompilerM
public import Lean.Compiler.IR.NormIds
public import Lean.Compiler.IR.Checker
public import Lean.Compiler.IR.UnboxResult
public import Lean.Compiler.IR.EmitC
public import Lean.Compiler.IR.Sorry
public import Lean.Compiler.IR.ToIR
public import Lean.Compiler.IR.ToIRType
Expand All @@ -34,7 +33,6 @@ def compile (decls : Array Decl) : CompilerM (Array Decl) := do
let mut decls := decls
decls ← updateSorryDep decls
logDecls `result decls
checkDecls decls
addDecls decls
inferMeta decls
return decls
Expand Down
3 changes: 3 additions & 0 deletions src/Lean/Compiler/IR/AddExtern.lean
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ where
decl.saveImpure
let decls ← Compiler.LCNF.addBoxedVersions #[decl]
let decls ← Compiler.LCNF.runExplicitRc decls
for decl in decls do
decl.saveImpure
modifyEnv fun env => Compiler.LCNF.recordFinalImpureDecl env decl.name
return decls

addIr (decls : Array (Compiler.LCNF.Decl .impure)) : CoreM Unit := do
Expand Down
Loading
Loading