Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Dec 10, 2023
1 parent 9f7ed04 commit d4e737c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Juvix/Compiler/Backend/C/Translation/FromReg.hs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ fromRegInstr bNoStack info = \case
Reg.Failure Reg.InstrFailure {..} ->
return [StatementExpr $ macroCall "JUVIX_FAILURE" [fromValue _instrFailureValue]]
Reg.ArgsNum Reg.InstrArgsNum {..} ->
return [StatementExpr $ macroCall "JUVIX_ARGS_NUM" [fromVarRef _instrArgsNumResult, fromValue _instrArgsNumArg]]
return [StatementExpr $ macroCall "JUVIX_ARGS_NUM" [fromVarRef _instrArgsNumResult, fromValue _instrArgsNumValue]]
Reg.Prealloc x ->
return [fromPrealloc x]
Reg.Alloc x ->
Expand Down
2 changes: 1 addition & 1 deletion src/Juvix/Compiler/Reg/Extra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ computeStringMap strs = snd . run . execState (HashMap.size strs, strs) . mapM g
Failure InstrFailure {..} ->
goVal _instrFailureValue
ArgsNum InstrArgsNum {..} ->
goVal _instrArgsNumArg
goVal _instrArgsNumValue
Prealloc {} -> return ()
Alloc InstrAlloc {..} ->
mapM_ goVal _instrAllocArgs
Expand Down
2 changes: 1 addition & 1 deletion src/Juvix/Compiler/Reg/Language.hs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ newtype InstrFailure = InstrFailure

data InstrArgsNum = InstrArgsNum
{ _instrArgsNumResult :: VarRef,
_instrArgsNumArg :: Value
_instrArgsNumValue :: Value
}

data InstrPrealloc = InstrPrealloc
Expand Down

0 comments on commit d4e737c

Please sign in to comment.