commit | a3df622599f55a8bdb90ad6602ee9dfe9d1038b2 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Wed Oct 16 18:26:16 2013 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Sep 29 11:01:12 2020 -0700 |
tree | 7dd3b8091d247aa545a73e16fcc6f22b7d559a00 | |
parent | 1c1618220c5a4c405e0bd7a784e063b2f6bffcea [diff] |
Fix MCDataAtom never calling remap when adding data. This patch fixes a small mistake in MCDataAtom::addData() where it doesn't ever call remap(): - if (Data.size() > Begin - End - 1) + if (Data.size() > End + 1 - Begin) remap(Begin, End + 1); This is currently not visible because of another bug is the disassembler, so the patch includes a unit test. Patch by Stephen Checkoway. llvm-svn: 192823 GitOrigin-RevId: bab2afbfbed646da705a12e9a74f113d1e628faa