diff --git a/compiler/GHC/Core/Unfold.hs b/compiler/GHC/Core/Unfold.hs index 293fbd22fdaa9de89155275f8db276c5586d45aa..ec75efa7d3f13615e0a72b8fb3b60ca9cc063606 100644 --- a/compiler/GHC/Core/Unfold.hs +++ b/compiler/GHC/Core/Unfold.hs @@ -234,6 +234,7 @@ inlineBoringOk e go credit (Case scrut _ _ [Alt _ _ rhs]) -- See Note [Inline unsafeCoerce] | isUnsafeEqualityProof scrut = go credit rhs go _ (Var {}) = boringCxtOk + go _ (Lit l) = litIsTrivial l && boringCxtOk go _ _ = boringCxtNotOk calcUnfoldingGuidance