Update assert to fix retc001 and retc002 (#9243)
Update assert to fix retc001 and retc002 (#9243)

Since 2223e196b2dc5340d70e58be011c279d381b4319, maybe_old_linkable can
be Nothing even with an up-to-date interface file. This happens when
compiling with --make -fno-code -fwrite-interface.

See also Note [Recompilation checking when typechecking only] in
GhcMake.hs.

This fixes retc001 and retc002 when ghc_debugged.

Differential Revision: https://phabricator.haskell.org/D1077

shlevy/ghc,mfine/ghc,AlexanderPankiv/ghc,anton-dessiatov/ghc,oldmanmike/ghc,TomMD/ghc,tjakway/ghcjvm,vikraman/ghc,olsner/ghc,vTurbine/ghc,vikraman/ghc,oldmanmike/ghc,ezyang/ghc,sgillespie/ghc,GaloisInc/halvm-ghc,vikraman/ghc,mfine/ghc,shlevy/ghc,oldmanmike/ghc,mettekou/ghc,acowley/ghc,ml9951/ghc,ghc-android/ghc,olsner/ghc,ml9951/ghc,mfine/ghc,mcschroeder/ghc,siddhanathan/ghc,ezyang/ghc,TomMD/ghc,nushio3/ghc,TomMD/ghc,vTurbine/ghc,snoyberg/ghc,shlevy/ghc,shlevy/ghc,tjakway/ghcjvm,ezyang/ghc,nkaretnikov/ghc,ml9951/ghc,ghc-android/ghc,ml9951/ghc,sdiehl/ghc,oldmanmike/ghc,snoyberg/ghc,ghc-android/ghc,mfine/ghc,GaloisInc/halvm-ghc,sgillespie/ghc,gridaphobe/ghc,sgillespie/ghc,GaloisInc/halvm-ghc,tjakway/ghcjvm,oldmanmike/ghc,elieux/ghc,sdiehl/ghc,mcschroeder/ghc,nkaretnikov/ghc,nkaretnikov/ghc,mfine/ghc,siddhanathan/ghc,elieux/ghc,mcschroeder/ghc,vTurbine/ghc,snoyberg/ghc,AlexanderPankiv/ghc,GaloisInc/halvm-ghc,nushio3/ghc,AlexanderPankiv/ghc,siddhanathan/ghc,nushio3/ghc,nushio3/ghc,mettekou/ghc,gridaphobe/ghc,vTurbine/ghc,ezyang/ghc,wxwxwwxxx/ghc,TomMD/ghc,tjakway/ghcjvm,mfine/ghc,gridaphobe/ghc,wxwxwwxxx/ghc,GaloisInc/halvm-ghc,nkaretnikov/ghc,da-x/ghc,TomMD/ghc,acowley/ghc,snoyberg/ghc,sgillespie/ghc,snoyberg/ghc,gridaphobe/ghc,nkaretnikov/ghc,TomMD/ghc,oldmanmike/ghc,sgillespie/ghc,da-x/ghc,gridaphobe/ghc,elieux/ghc,acowley/ghc,da-x/ghc,mettekou/ghc,mettekou/ghc,vikraman/ghc,AlexanderPankiv/ghc,ezyang/ghc,mcschroeder/ghc,tjakway/ghcjvm,oldmanmike/ghc,siddhanathan/ghc,vikraman/ghc,sdiehl/ghc,AlexanderPankiv/ghc,anton-dessiatov/ghc,ezyang/ghc,siddhanathan/ghc,anton-dessiatov/ghc,TomMD/ghc,ml9951/ghc,acowley/ghc,nushio3/ghc,ml9951/ghc,vikraman/ghc,wxwxwwxxx/ghc,sdiehl/ghc,nkaretnikov/ghc,shlevy/ghc,acowley/ghc,da-x/ghc,elieux/ghc,mcschroeder/ghc,siddhanathan/ghc,GaloisInc/halvm-ghc,sdiehl/ghc,ghc-android/ghc,snoyberg/ghc,wxwxwwxxx/ghc,da-x/ghc,AlexanderPankiv/ghc,GaloisInc/halvm-ghc,tjakway/ghcjvm,snoyberg/ghc,elieux/ghc,mfine/ghc,anton-dessiatov/ghc,sgillespie/ghc,olsner/ghc,vTurbine/ghc,anton-dessiatov/ghc,tjakway/ghcjvm,wxwxwwxxx/ghc,AlexanderPankiv/ghc,vTurbine/ghc,da-x/ghc,acowley/ghc,olsner/ghc,mettekou/ghc,mcschroeder/ghc,acowley/ghc,shlevy/ghc,nushio3/ghc,anton-dessiatov/ghc,vTurbine/ghc,sdiehl/ghc,da-x/ghc,nushio3/ghc,ghc-android/ghc,nkaretnikov/ghc,ghc-android/ghc,olsner/ghc,shlevy/ghc,mcschroeder/ghc,gridaphobe/ghc,sgillespie/ghc,mettekou/ghc,sdiehl/ghc,gridaphobe/ghc,olsner/ghc,elieux/ghc,vikraman/ghc,elieux/ghc,wxwxwwxxx/ghc,ghc-android/ghc,mettekou/ghc,wxwxwwxxx/ghc,ezyang/ghc,olsner/ghc,siddhanathan/ghc,ml9951/ghc,anton-dessiatov/ghc,ml9951/ghc