summaryrefslogtreecommitdiff
path: root/compiler/GHC/StgToCmm
diff options
context:
space:
mode:
authorBen Gamari <ben@well-typed.com>2020-09-09 14:19:53 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-02-14 03:35:07 -0500
commit74fec146d2dcf05921d58dc81fd5481f9de6d6e9 (patch)
tree72237da614f773c47900fc327480da5a44e49410 /compiler/GHC/StgToCmm
parent544329c872cbe8707ebd12def1cfb10f4692f439 (diff)
downloadhaskell-74fec146d2dcf05921d58dc81fd5481f9de6d6e9.tar.gz
Introduce keepAlive primop
Diffstat (limited to 'compiler/GHC/StgToCmm')
-rw-r--r--compiler/GHC/StgToCmm/Prim.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/GHC/StgToCmm/Prim.hs b/compiler/GHC/StgToCmm/Prim.hs
index b08edea624..2ea28a8eb2 100644
--- a/compiler/GHC/StgToCmm/Prim.hs
+++ b/compiler/GHC/StgToCmm/Prim.hs
@@ -1623,6 +1623,8 @@ emitPrimOp dflags primop = case primop of
TraceMarkerOp -> alwaysExternal
SetThreadAllocationCounter -> alwaysExternal
+ KeepAliveOp -> panic "keepAlive# should have been eliminated in CorePrep"
+
where
profile = targetProfile dflags
platform = profilePlatform profile