You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following comment can be found in GHC at compiler/GHC/StgToCmm/Expr.hs:
{-Note [Scrutinising VoidRep]~~~~~~~~~~~~~~~~~~~~~~~~~~~Suppose we have this STG code: f = \[s : State# RealWorld] -> case s of _ -> blahThis is very odd. Why are we scrutinising a state token? But itcan arise with bizarre NOINLINE pragmas (#9964) crash :: IO () crash = IO (\s -> let {-# NOINLINE s' #-} s' = s in (# s', () #))Now the trouble is that 's' has VoidRep, and we do not bind voidarguments in the environment; they don't live anywhere. See thecalls to nonVoidIds in various places. So we must not look up's' in the environment. Instead, just evaluate the RHS! Simple.-}
Following the rules in the Haskell.plist syntax grammar, the beginning of {-# NOINLINE s' #-} is not matched as a comment (since it is followed by #), but the end is. This causes the comment to end abruptly.
The text was updated successfully, but these errors were encountered:
The following comment can be found in GHC at compiler/GHC/StgToCmm/Expr.hs:
Following the rules in the Haskell.plist syntax grammar, the beginning of
{-# NOINLINE s' #-}
is not matched as a comment (since it is followed by#
), but the end is. This causes the comment to end abruptly.The text was updated successfully, but these errors were encountered: