Skip to content
  • Ben Gamari's avatar
    CLabel: Catch #11155 during C-- pretty-printing · f091218a
    Ben Gamari authored and Ben Gamari's avatar Ben Gamari committed
    In #11555 we ended up generating references to the non-existence
    stg_ap_0_upd. Here we add asserts to verify that we don't generate
    references to non-existent selector or application symbols.
    
    It would likely also make sense to add further asserts during code
    generation, so we can catch the issue even closer to its source.
    
    Test Plan: Validate
    
    Reviewers: simonmar, austin, ezyang
    
    Reviewed By: simonmar, austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2230
    
    GHC Trac Issues: #11155
    f091218a