Skip to content

Commit

Permalink
ppc-symbolic: Add INLINE to updateReg to avoid compiler bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Sep 26, 2024
1 parent 4356078 commit b7c5805
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions macaw-ppc-symbolic/src/Data/Macaw/PPC/Symbolic/Regs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,10 @@ lookupReg r asgn =
Nothing -> X.throwM (MissingRegisterInState (Some r))
Just pair -> return (asgn Ctx.! MSB.crucibleIndex pair)

-- See:
-- - https://github.com/GaloisInc/macaw/pull/445#issuecomment-2377127496
-- - https://gitlab.haskell.org/ghc/ghc/-/issues/25301
{-# INLINE updateReg #-}
updateReg :: forall v ppc m f tp
. (MP.KnownVariant v,
ppc ~ MP.AnyPPC v,
Expand Down

0 comments on commit b7c5805

Please sign in to comment.