Skip to content

Commit ba10cb9

Browse files
Correct dataToTagSmall# CPP for 9.10.2
1 parent 0e0e380 commit ba10cb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clash-ghc/src-ghc/Clash/GHC/Evaluator/Primitive.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,8 @@ ghcPrimStep tcm isSubj pInfo tys args mach = case primName pInfo of
14591459
$(namePat 'GHC.PrimopWrappers.dataToTagLarge#)
14601460
| [DC dc _] <- args
14611461
-> reduce (Literal (IntLiteral (toInteger (dcTag dc - 1))))
1462-
#elif MIN_VERSION_ghc(9,10,0)
1462+
#endif
1463+
#if MIN_VERSION_ghc(9,10,0)
14631464
$(namePat 'GHC.Prim.dataToTagSmall#)
14641465
| [DC dc _] <- args
14651466
-> reduce (Literal (IntLiteral (toInteger (dcTag dc - 1))))

0 commit comments

Comments
 (0)