From c11ba0a592397da50835665e65a68d08fa9fe331 Mon Sep 17 00:00:00 2001 From: sof Date: Mon, 25 Aug 1997 21:54:41 +0000 Subject: [PATCH 1/1] [project @ 1997-08-25 21:54:41 by sof] tidy up CCallOp as well --- ghc/compiler/simplCore/SimplCore.lhs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ghc/compiler/simplCore/SimplCore.lhs b/ghc/compiler/simplCore/SimplCore.lhs index 1b42cc0..e6bf0e1 100644 --- a/ghc/compiler/simplCore/SimplCore.lhs +++ b/ghc/compiler/simplCore/SimplCore.lhs @@ -501,8 +501,9 @@ tidyCoreExpr (Con con args) returnTM (Con con args') tidyCoreExpr (Prim prim args) - = mapTM tidyCoreArg args `thenTM` \ args' -> - returnTM (Prim prim args') + = tidyPrimOp prim `thenTM` \ prim' -> + mapTM tidyCoreArg args `thenTM` \ args' -> + returnTM (Prim prim' args') tidyCoreExpr (Lam (ValBinder v) body) = newId v $ \ v' -> @@ -632,6 +633,15 @@ tidyCoreArg (TyArg ty) = tidyTy ty `thenTM` \ ty' -> tidyCoreArg (UsageArg u) = returnTM (UsageArg u) \end{code} +\begin{code} +tidyPrimOp (CCallOp fn casm gc tys ty) + = mapTM tidyTy tys `thenTM` \ tys' -> + tidyTy ty `thenTM` \ ty' -> + returnTM (CCallOp fn casm gc tys' ty') + +tidyPrimOp other_prim_op = returnTM other_prim_op +\end{code} + %************************************************************************ %* * -- 1.7.10.4