[ppc] Replace deprecated asLiteralAddr with valueAsMemAddr.

This commit is contained in:
Kevin Quick 2018-03-27 10:51:16 -07:00
parent 5ec4b48e16
commit 7d7656bbd7
No known key found for this signature in database
GPG Key ID: E6D7733599CC0A21

View File

@ -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