Skip to content

Commit 79e0306

Browse files
committed
better?
1 parent 02bcc41 commit 79e0306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Lean/Compiler/LCNF/JoinPoints.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ structure FindCtx where
4545
A map from function declarations that are currently in scope to their
4646
definition depth.
4747
-/
48-
scope : PersistentHashMap FVarId Nat := {}
48+
scope : FVarIdMap Nat := {}
4949
/--
5050
The current function binder we are inside of if any.
5151
-/
@@ -187,7 +187,7 @@ where
187187
eraseCandidate fvarId
188188
else
189189
let currDepth := (← read).definitionDepth
190-
let calleeDepth := (← read).scope.find! fvarId
190+
let calleeDepth := (← read).scope.get! fvarId
191191
if currDepth == calleeDepth then
192192
/-
193193
we are in a situation like:

0 commit comments

Comments
 (0)