Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Mar 23, 2023
1 parent bb44970 commit 969c215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Juvix/Compiler/Core/Transformation/UnrollRecursion.hs
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ unrollRecursion tab =
go :: Int -> Node -> Node
go limit = \case
NIdt idt@Ident {..} ->
NIdt idt {_identSymbol = fromJust $ HashMap.lookup (_identSymbol, limit - 1) freshSyms}
NIdt idt {_identSymbol = fromMaybe _identSymbol $ HashMap.lookup (_identSymbol, limit - 1) freshSyms}
node -> node

0 comments on commit 969c215

Please sign in to comment.