Validate fails due to overlapping pattern in StgCmmExpr
|Reported by:||daniel.is.fischer||Owned by:|
|Type of failure:||Building GHC failed||Test Case:|
|Related Tickets:||Differential Revisions:|
The failure due to -Werror:
compiler/codeGen/StgCmmExpr.hs:55:1: Warning: Pattern match(es) are overlapped In an equation for `cgExpr': cgExpr (StgOpApp (StgPrimOp SeqOp) [StgVarArg a, _] _res_ty) = ... <no location info>: Failing due to -Werror.
The special case for the new seq primop was below the general
cgExpr (StgOpApp op args ty) = cgOpApp op args ty
and thus would never have been reached. I moved it above (currently validating) to fix that.