Skip to content

Commit 62a615f

Browse files
committed
perf: remove obsolete old codegen workaround
1 parent 5778a3c commit 62a615f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Lean/CoreM.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,9 +682,7 @@ opaque compileDeclsImpl (declNames : Array Name) : CoreM Unit
682682

683683
-- `ref?` is used for error reporting if available
684684
partial def compileDecls (decls : Array Name) (logErrors := true) : CoreM Unit := do
685-
-- When inside `realizeConst`, do compilation synchronously so that `_cstage*` constants are found
686-
-- by the replay code
687-
if !Elab.async.get (← getOptions) || (← getEnv).isRealizing then
685+
if !Elab.async.get (← getOptions) then
688686
let _ ← traceBlock "compiler env" (← getEnv).checked
689687
doCompile
690688
return

0 commit comments

Comments
 (0)