From 6e2c495e3c600710bb6fc07dfb3cf0af41b362da Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sat, 28 Dec 2019 00:19:16 -0500 Subject: TcIface: Fix inverted logic in typechecking of source ticks Previously we would throw away source ticks when the debug level was non-zero. This is precisely the opposite of what was intended. Fixes #17616. Metric Decrease: T13056 T9020 T9961 T12425 --- compiler/iface/TcIface.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/iface/TcIface.hs b/compiler/iface/TcIface.hs index 4cc9195045..818745775a 100644 --- a/compiler/iface/TcIface.hs +++ b/compiler/iface/TcIface.hs @@ -1367,7 +1367,7 @@ tcIfaceExpr (IfaceTick tickish expr) = do -- If debug flag is not set: Ignore source notes dbgLvl <- fmap debugLevel getDynFlags case tickish of - IfaceSource{} | dbgLvl > 0 + IfaceSource{} | dbgLvl == 0 -> return expr' _otherwise -> do tickish' <- tcIfaceTickish tickish -- cgit v1.2.1