projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
653711f
)
Add an assertion
author
simonpj@microsoft.com
<unknown>
Thu, 21 Oct 2010 17:02:22 +0000
(17:02 +0000)
committer
simonpj@microsoft.com
<unknown>
Thu, 21 Oct 2010 17:02:22 +0000
(17:02 +0000)
compiler/basicTypes/Id.lhs
patch
|
blob
|
history
diff --git
a/compiler/basicTypes/Id.lhs
b/compiler/basicTypes/Id.lhs
index
d8771bc
..
65ab644
100644
(file)
--- a/
compiler/basicTypes/Id.lhs
+++ b/
compiler/basicTypes/Id.lhs
@@
-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
-- 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)
= id
| otherwise
= mkLocalIdWithInfo (localiseName name) (idType id) (idInfo id)