Skip to content

Commit 584bb40

Browse files
committed
Remove unnecessary litArg call
1 parent 7802d95 commit 584bb40

File tree

1 file changed

+1
-8
lines changed
  • unison-runtime/src/Unison/Runtime

1 file changed

+1
-8
lines changed

unison-runtime/src/Unison/Runtime/MCode.hs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ emitSection rns grpr grpn rec ctx (TApp f args) =
944944
emitClosures grpr grpn rec ctx args $ \ctx as ->
945945
countCtx ctx $ emitFunction rns grpr grpn rec ctx f as
946946
emitSection _ _ _ _ ctx (TLit l) =
947-
c . countCtx ctx . Ins (emitLit l) . Yield $ litArg l
947+
c . countCtx ctx . Ins (emitLit l) . Yield $ VArg1 0
948948
where
949949
c
950950
| ANF.T {} <- l = addCount 1
@@ -1110,13 +1110,6 @@ emitFunctionVErr v =
11101110
internalBug $
11111111
"emitFunction: could not resolve function variable: " ++ show v
11121112

1113-
-- | TODO: Can remove this
1114-
litArg :: ANF.Lit -> Args
1115-
litArg ANF.T {} = VArg1 0
1116-
litArg ANF.LM {} = VArg1 0
1117-
litArg ANF.LY {} = VArg1 0
1118-
litArg _ = VArg1 0
1119-
11201113
-- Emit machine code for a let expression. Some expressions do not
11211114
-- require a machine code Let, which uses more complicated stack
11221115
-- manipulation.

0 commit comments

Comments
 (0)