From: Roman Leshchinskiy Date: Mon, 16 Jul 2007 11:08:19 +0000 (+0000) Subject: Pass correct dictionary to lengthPA for single-element environments X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=13ae8118913e5df9a8e8ff859cef8dd4bbcf8506;p=ghc-hetmet.git Pass correct dictionary to lengthPA for single-element environments --- diff --git a/compiler/vectorise/Vectorise.hs b/compiler/vectorise/Vectorise.hs index c974c20..50e5923 100644 --- a/compiler/vectorise/Vectorise.hs +++ b/compiler/vectorise/Vectorise.hs @@ -398,8 +398,9 @@ mkClosureMonoFns info arg body bind_lenv lenv lbody lc_bndr [lbndr] = do lengthPA <- builtin lengthPAVar + pa_dict <- paDictOfType vty return . Let (NonRec lbndr lenv) - $ Case (mkApps (Var lengthPA) [Type vty, (Var lbndr)]) + $ Case (mkApps (Var lengthPA) [Type vty, pa_dict, (Var lbndr)]) lc_bndr (exprType lbody) [(DEFAULT, [], lbody)]