diff options
author | Ben Gamari <ben@well-typed.com> | 2020-09-09 14:19:53 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-02-14 03:35:07 -0500 |
commit | 74fec146d2dcf05921d58dc81fd5481f9de6d6e9 (patch) | |
tree | 72237da614f773c47900fc327480da5a44e49410 /compiler/GHC/StgToCmm/Prim.hs | |
parent | 544329c872cbe8707ebd12def1cfb10f4692f439 (diff) | |
download | haskell-74fec146d2dcf05921d58dc81fd5481f9de6d6e9.tar.gz |
Introduce keepAlive primop
Diffstat (limited to 'compiler/GHC/StgToCmm/Prim.hs')
-rw-r--r-- | compiler/GHC/StgToCmm/Prim.hs | 2 |
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 |