diff options
Diffstat (limited to 'compiler/simplStg/SimplStg.lhs')
-rw-r--r-- | compiler/simplStg/SimplStg.lhs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/simplStg/SimplStg.lhs b/compiler/simplStg/SimplStg.lhs index dbf6cb7a66..caf00a238f 100644 --- a/compiler/simplStg/SimplStg.lhs +++ b/compiler/simplStg/SimplStg.lhs @@ -16,7 +16,7 @@ import StgLint ( lintStgBindings ) import StgStats ( showStgStats ) import UnariseStg ( unarise ) -import DynFlags ( DynFlags(..), GeneralFlag(..), dopt, StgToDo(..), +import DynFlags ( DynFlags(..), GeneralFlag(..), gopt, StgToDo(..), getStgToDo ) import Module ( Module ) import ErrUtils @@ -56,7 +56,7 @@ stg2stg dflags module_name binds } where - stg_linter = if dopt Opt_DoStgLinting dflags + stg_linter = if gopt Opt_DoStgLinting dflags then lintStgBindings else ( \ _whodunnit binds -> binds ) |