• Erik de Castro Lopo's avatar
    rts: More const correct-ness fixes · 33c029dd
    Erik de Castro Lopo authored
    In addition to more const-correctness fixes this patch fixes an
    infelicity of the previous const-correctness patch (995cf0f3) which
    left `UNTAG_CLOSURE` taking a `const StgClosure` pointer parameter
    but returning a non-const pointer. Here we restore the original type
    signature of `UNTAG_CLOSURE` and add a new function
    `UNTAG_CONST_CLOSURE` which takes and returns a const `StgClosure`
    pointer and uses that wherever possible.
    Test Plan: Validate on Linux, OS X and Windows
    Reviewers: Phyx, hsyl20, bgamari, austin, simonmar, trofi
    Reviewed By: simonmar, trofi
    Subscribers: thomie
    Differential Revision: https://phabricator.haskell.org/D2231
InfoTables.h 12.8 KB