Fix bug in conversion unvect/vect
authorRoman Leshchinskiy <rl@cse.unsw.edu.au>
Sun, 18 Nov 2007 05:19:26 +0000 (05:19 +0000)
committerRoman Leshchinskiy <rl@cse.unsw.edu.au>
Sun, 18 Nov 2007 05:19:26 +0000 (05:19 +0000)
compiler/vectorise/VectType.hs

index 64de665..9bf11e6 100644 (file)
@@ -1042,6 +1042,7 @@ identityConvTyCon :: TyCon -> VM ()
 identityConvTyCon tc
   | isBoxedTupleTyCon tc = return ()
   | isUnLiftedTyCon tc   = return ()
-  | otherwise            = maybeV (lookupTyCon tc) >> return ()
-
+  | otherwise            = do
+                             tc' <- maybeV (lookupTyCon tc)
+                             if tc == tc' then return () else noV