ASSERT failed in GHC.CoreToStg.Prep when compiling optimized bytecode
```haskell
import Control.Exception
main = mask $ \restore -> restore (pure ())
```
use a ghc build with `+assertions` and load the repro above with `--interactive -O -fno-unoptimized-core-for-interpreter test.hs -e main`, ghc fails with:
```
<no location info>: error:
ASSERT failed!
CallStack (from HasCallStack):
assert, called at compiler/GHC/CoreToStg/Prep.hs:1265:12 in ghc-10.1-inplace:GHC.CoreToStg.Prep
```
issue