Skip to content

Commit

Permalink
fix Reopt indicate function type rather than return type on LLVM calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptival committed Oct 17, 2024
1 parent 07488fb commit 787e8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Reopt/CFG/LLVM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ call (valueOf -> f) args =
L.PrimType L.Void -> do
error "Call expected to return a value, but returns void."
_ -> do
fmap (L.Typed res) $ evalInstr $ L.Call False (L.typedType f) (L.typedValue f) args
fmap (L.Typed res) $ evalInstr $ L.Call False res (L.typedValue f) args
_ -> error $ "Call given non-function pointer argument:\n" ++ show f

-- | Generate a non-tail call that does not return a value
Expand Down

0 comments on commit 787e8fd

Please sign in to comment.