X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=c%CE%BBash%2FCLasH%2FUtils%2FCore%2FCoreTools.hs;h=bfe3971d8114456ab01d8bc306f730d74d34d99e;hb=9b378bd9c8ea179ce0459fef9b362002f90dbc98;hp=cd85b4d0102e257d8f650782e9fdac516fbe6c2f;hpb=4aed809f270a2a01cfaca05381c0689cd881556b;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git "a/c\316\273ash/CLasH/Utils/Core/CoreTools.hs" "b/c\316\273ash/CLasH/Utils/Core/CoreTools.hs" index cd85b4d..bfe3971 100644 --- "a/c\316\273ash/CLasH/Utils/Core/CoreTools.hs" +++ "b/c\316\273ash/CLasH/Utils/Core/CoreTools.hs" @@ -361,8 +361,8 @@ genUniques' subst (CoreSyn.App f arg) = do f' <- genUniques' subst f arg' <- genUniques' subst arg return (CoreSyn.App f' arg') -genUniques' subst (CoreSyn.Lam bndr res) | CoreSyn.isTyVar bndr = - error $ "Cloning type variables not supported!" +-- Don't change type abstractions +genUniques' subst expr@(CoreSyn.Lam bndr res) | CoreSyn.isTyVar bndr = return expr genUniques' subst (CoreSyn.Lam bndr res) = do -- Generate a new unique for the bound variable (subst', bndr') <- genUnique subst bndr