summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-12-28 00:19:16 -0500
committerBen Gamari <ben@smart-cactus.org>2019-12-28 11:14:03 -0500
commitb55dfa3f1625209f0ed9238486b056f6a783f7c9 (patch)
treefecea34bd5cf7fb8bbc27597743e08d26db90721
parent334290b6681796dd141c964b88c541da13ce03c7 (diff)
downloadhaskell-wip/T17616.tar.gz
TcIface: Fix inverted logic in typechecking of source tickswip/T17616
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
-rw-r--r--compiler/iface/TcIface.hs2
1 files changed, 1 insertions, 1 deletions
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