From d8e1c0a78a79c3c6156464438ea7aea3b61b2bd6 Mon Sep 17 00:00:00 2001 From: simonpj Date: Mon, 11 Sep 2000 08:13:37 +0000 Subject: [PATCH] [project @ 2000-09-11 08:13:37 by simonpj] Remove redundant setNoDiscardId call from Specialise.newIdSM --- ghc/compiler/specialise/Specialise.lhs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ghc/compiler/specialise/Specialise.lhs b/ghc/compiler/specialise/Specialise.lhs index 5f865c2..cf55186 100644 --- a/ghc/compiler/specialise/Specialise.lhs +++ b/ghc/compiler/specialise/Specialise.lhs @@ -1140,15 +1140,12 @@ newIdSM old_id new_ty = getUniqSM `thenSM` \ uniq -> let -- Give the new Id a similar occurrence name to the old one + -- We used to add setIdNoDiscard if the old id was exported, to + -- avoid it being dropped as dead code, but that's not necessary any more. name = idName old_id new_id = mkUserLocal (mkSpecOcc (nameOccName name)) uniq new_ty (getSrcLoc name) - - -- If the old Id was exported, make the new one non-discardable, - -- else we will discard it since it doesn't seem to be called. - new_id' | isExportedId old_id = setIdNoDiscard new_id - | otherwise = new_id in - returnSM new_id' + returnSM new_id newTyVarSM = getUniqSM `thenSM` \ uniq -> -- 1.7.10.4