Skip to content

Commit

Permalink
Fixup a tidbit in the pass by ref phase
Browse files Browse the repository at this point in the history
  • Loading branch information
msprotz committed Dec 8, 2023
1 parent c5d0b7d commit d433aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Structs.ml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ let pass_by_ref (should_rewrite: _ -> policy) = object (self)
) args args_policies in
let ret, args =
if ret_policy <> Never then
TUnit, args @ [ TBuf (ret, false) ]
TUnit, args @ [ if Helpers.is_array ret then ret else TBuf (ret, false) ]
else
ret, args
in
Expand Down

0 comments on commit d433aac

Please sign in to comment.