Update assert to fix retc001 and retc002 (#9243)
authorThomas Miedema <thomasmiedema@gmail.com>
Fri, 17 Jul 2015 09:42:24 +0000 (11:42 +0200)
committerThomas Miedema <thomasmiedema@gmail.com>
Fri, 17 Jul 2015 23:00:49 +0000 (01:00 +0200)
commitbc604bdb0144010e8582caa6ea159ca0446c04f2
treef994be253ff02295bd6a0277d8757567c7efd705
parent3448f9827d2364b91bc60134aa38b74849b9d54e
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
compiler/main/DriverPipeline.hs