Add an assertion
authorsimonpj@microsoft.com <unknown>
Thu, 21 Oct 2010 17:02:22 +0000 (17:02 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 21 Oct 2010 17:02:22 +0000 (17:02 +0000)
compiler/basicTypes/Id.lhs

index d8771bc..65ab644 100644 (file)
@@ -172,7 +172,7 @@ localiseId :: Id -> Id
 -- Make an with the same unique and type as the 
 -- incoming Id, but with an *Internal* Name and *LocalId* flavour
 localiseId id 
-  | isLocalId id && isInternalName name
+  | ASSERT( isId id ) isLocalId id && isInternalName name
   = id
   | otherwise
   = mkLocalIdWithInfo (localiseName name) (idType id) (idInfo id)