HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Moduleghc-9.14.1GHC2021

GHC.StgToCmm.TagCheck

  • 8 values
  • Packageghc-9.14.1
  • Exports8
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceTagCheck.hs
valueemitTagAssertion :: String -> CmmExpr -> FCode ()
#

Call barf if we failed to predict a tag correctly. This is immensely useful when debugging issues in tag inference as it will result in a program abort when we encounter an invalid call/heap object, rather than leaving it be and segfaulting arbitrary or producing invalid results. We check if either: * A tag is present * Or the object is a 25 (for which zero is the proper tag)