[project @ 2001-11-06 11:03:19 by simonmar]
authorsimonmar <unknown>
Tue, 6 Nov 2001 11:03:19 +0000 (11:03 +0000)
committersimonmar <unknown>
Tue, 6 Nov 2001 11:03:19 +0000 (11:03 +0000)
Add an ASSERT

ghc/compiler/ghci/ByteCodeLink.lhs

index 435c9cc..fd99f8e 100644 (file)
@@ -578,7 +578,8 @@ lookupCE ce (Left nm)
    = case lookupFM ce nm of
         Just aa -> return aa
         Nothing 
-           -> do let sym_to_find = nameToCLabel nm "closure"
+           -> ASSERT2(isGlobalName nm, ppr nm)
+             do let sym_to_find = nameToCLabel nm "closure"
                  m <- lookupSymbol sym_to_find
                  case m of
                     Just (Ptr addr) -> case addrToHValue# addr of