on master help sign in
Cleanup
commit4b2570e09280c66d02b515cbb2f3ad816ae3b0ce authorBenjamin Saunders <besaunde@sfu.ca> dateTue 25 Jun 2013, 18:42 (13 years ago) parent21c9f6f
1 file changed+1−9
src/IRTS/CodegenLLVM.hs+1−9
src/IRTS/CodegenLLVM.hs+1−9
@@ -336,15 +336,7 @@ cgExpr (SApp tailcall fname args) = do
336336 Nothing -> return Nothing
337337 Just argVals -> do
338338 fn <- var (Glob fname)
339− Just <$> inst
340− Call { isTailCall = tailcall
341− , callingConvention = CC.Fast
342− , returnAttributes = []
343− , function = Right . ConstantOperand . C.GlobalReference . Name $ show fname
344− , arguments = map (\v -> (v, [])) argVals
345− , functionAttributes = []
346− , metadata = []
347− }
339+ Just <$> inst ((idrCall (show fname) argVals) { isTailCall = tailcall })
348340cgExpr (SLet _ varExpr bodyExpr) = do
349341 val <- cgExpr varExpr
350342 binds [val] $ cgExpr bodyExpr