mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-12-29 17:17:05 +03:00
[ppc] Replace deprecated asLiteralAddr with valueAsMemAddr.
This commit is contained in:
parent
5ec4b48e16
commit
7d7656bbd7
@ -36,7 +36,7 @@ identifyCall _ mem stmts0 rs
|
||||
| not (null stmts0)
|
||||
, MC.RelocatableValue {} <- rs ^. MC.boundValue PPC_LNK
|
||||
, Just retVal <- simplifyValue (rs ^. MC.boundValue PPC_LNK)
|
||||
, Just retAddrVal <- MC.asLiteralAddr retVal
|
||||
, Just retAddrVal <- MC.valueAsMemAddr retVal
|
||||
, Just retAddr <- MM.asSegmentOff mem retAddrVal =
|
||||
Just (Seq.fromList stmts0, retAddr)
|
||||
| otherwise = Nothing
|
||||
|
Loading…
Reference in New Issue
Block a user