[PATCH] Fix MCDataAtom never calling remap when adding data.
Stephen Checkoway
s at pahtak.org
Tue Oct 15 23:40:20 PDT 2013
The attached 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);
I was unsure if such a simple fix needed a test or not, but the patch creates a new unittests/MC directory and adds a simple test.
--
Stephen Checkoway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MCDataAtom-size.diff
Type: application/octet-stream
Size: 3060 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131016/d73363ca/attachment.obj>
More information about the llvm-commits
mailing list