Skip to content

Commit 2a1986a

Browse files
committed
iron out an overlap warning due to GHC's extra smartness
1 parent eb4aa04 commit 2a1986a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gibbon-compiler/src/Gibbon/Passes/RouteEnds.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,7 @@ routeEnds prg@Prog{ddefs,fundefs,mainExp} = do
384384
tyconOfDataCon = getTyOfDataCon ddefs dc
385385
argtys = lookupDataCon ddefs dc
386386
env2' = extendsVEnvLocVar (M.fromList (zip (L.map fromLocVarToFreeVarsTy locs) argtys ++ zip varsToFreeVarsTy argtys)) env2
387-
lx = case M.lookup (fromVarToFreeVarsTy x) lenv of
388-
Nothing -> error $ "Failed to find " ++ (show x)
389-
Just l -> l
387+
lx = scrutloc
390388
-- we know lx and need have the same end, since
391389
-- lx is the whole packed thing and need is its
392390
-- last field, so when we look up the end of lx

0 commit comments

Comments
 (0)