arm: Fix a compile error

The UnexpectedRelocation constructor changed recently
This commit is contained in:
Tristan Ravitch 2018-07-26 22:02:39 -07:00
parent ff80d7e676
commit e1c04f1b5a

View File

@ -215,7 +215,7 @@ readInstruction mem addr = MM.addrWidthClass (MM.memAddrWidth mem) $ do
MM.BSSRegion {} : _ -> MM.BSSRegion {} : _ ->
ET.throwError $ ARMMemoryError (MM.UnexpectedBSS segRelAddr) ET.throwError $ ARMMemoryError (MM.UnexpectedBSS segRelAddr)
MM.RelocationRegion r : _ -> MM.RelocationRegion r : _ ->
ET.throwError $ ARMMemoryError (MM.UnexpectedRelocation segRelAddr r "Disassembling from relocation") ET.throwError $ ARMMemoryError (MM.UnexpectedRelocation segRelAddr r)
MM.ByteRegion bs : _ MM.ByteRegion bs : _
| BS.null bs -> ET.throwError $ ARMMemoryError (MM.AccessViolation segRelAddr) | BS.null bs -> ET.throwError $ ARMMemoryError (MM.AccessViolation segRelAddr)
| otherwise -> do | otherwise -> do