summaryrefslogtreecommitdiff
path: root/compiler/GHC/ByteCode/Linker.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/ByteCode/Linker.hs')
-rw-r--r--compiler/GHC/ByteCode/Linker.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/GHC/ByteCode/Linker.hs b/compiler/GHC/ByteCode/Linker.hs
index 50bef7972e..9170da7710 100644
--- a/compiler/GHC/ByteCode/Linker.hs
+++ b/compiler/GHC/ByteCode/Linker.hs
@@ -39,8 +39,8 @@ import GHC.Data.FastString
import GHC.Data.SizedSeq
import GHC.Utils.Panic
+import GHC.Utils.Panic.Plain
import GHC.Utils.Outputable
-import GHC.Utils.Misc
import GHC.Types.Name
import GHC.Types.Name.Env
@@ -150,7 +150,7 @@ resolvePtr interp ie ce bco_ix breakarray ptr = case ptr of
-> return (ResolvedBCOPtr (unsafeForeignRefToRemoteRef rhv))
| otherwise
- -> ASSERT2(isExternalName nm, ppr nm)
+ -> assertPpr (isExternalName nm) (ppr nm) $
do
let sym_to_find = nameToCLabel nm "closure"
m <- lookupSymbol interp sym_to_find
@@ -187,7 +187,7 @@ nameToCLabel :: Name -> String -> FastString
nameToCLabel n suffix = mkFastString label
where
encodeZ = zString . zEncodeFS
- (Module pkgKey modName) = ASSERT( isExternalName n ) nameModule n
+ (Module pkgKey modName) = assert (isExternalName n) $ nameModule n
packagePart = encodeZ (unitFS pkgKey)
modulePart = encodeZ (moduleNameFS modName)
occPart = encodeZ (occNameFS (nameOccName n))