Skip to content

Don't update ModDetails with CafInfos when opts are disabled

Ömer Sinan Ağacan requested to merge osa1/ghc:cafinfo_fix into master

This is consistent with the interface file behavior where we omit HsNoCafRefs annotations with -fomit-interface-pragmas (implied by -O0).

Not doing this is causing a bug in !2842 (closed) which is fixed by this change. I don't understand how exactly this causes a bug though. Would be good to investigate more before merging this.

Merge request reports