Commit de1b802b authored by Moritz Angermann's avatar Moritz Angermann Committed by Ben Gamari
Browse files

genapply: Explicitly specify arguments

We seem to not be feeding either live registers or the arguments when
generating the fast call in genapply.  This results in strange signature
missmatches between the callee (expecting no registers) and the call
site, expecting to pass registers.

Test Plan: validate

Reviewers: bgamari, simonmar, austin

Reviewed By: simonmar

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D4029
parent 377d5a26
......@@ -858,7 +858,7 @@ genApplyFast regstatus args =
nest 4 (vcat [
text "Sp_adj" <> parens (int (-sp_offset)) <> semi,
saveRegOffs reg_locs,
mkJump regstatus fun_ret_label [] [] <> semi
mkJump regstatus fun_ret_label [] args <> semi
]),
char '}'
]),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment