• simonpj@microsoft.com's avatar
    Comment out deeply suspicious (and unused) function insertStableSymbol · 6ef2fc2e
    simonpj@microsoft.com authored
    The function insertStableSymbol looks utterly wrong, because it
    coerces a value of type 'a' to an Addr#!  That was in turn making the
    code generator get confused (now improved), but since insertStableSymbol
    isn't used at all, I'm just commenting it out.
    Meanwhile, this patch also enhances CoreToStg to report the most egregious
    cases where an unsafe coerce is going to confuse the code generator.
ObjLink.lhs 3.8 KB