Make isRepr work on TypedThings instead of CoreExpr.
[matthijs/master-project/cλash.git] / cλash / CLasH / Normalize.hs
index 2f74be883ffa601522ae8d4350b40332b2c3896e..38ee353ac4225fe49dc3b8e85c7c248de7f66f6e 100644 (file)
@@ -427,7 +427,7 @@ casesimpl expr@(Case scrut b ty alts) = do
       -- binding containing a case expression.
       dobndr :: CoreBndr -> Int -> TransformMonad (CoreBndr, Maybe (CoreBndr, CoreExpr))
       dobndr b i = do
-        repr <- isRepr (Var b)
+        repr <- isRepr b
         -- Is b wild (e.g., not a free var of expr. Since b is only in scope
         -- in expr, this means that b is unused if expr does not use it.)
         let wild = not (VarSet.elemVarSet b free_vars)