diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2013-08-21 19:40:28 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2013-08-21 19:40:28 +0000 |
commit | b2fdd9ee45e72eeca011a7f24c8d0ed44aba28a1 (patch) | |
tree | dd0b384b98fe5f195fd3174cdb71d6c6b9a9e43e /lib/MC/MCAtom.cpp | |
parent | 2172767491242a77866583baf8b777683c84b3c2 (diff) | |
download | external_llvm-b2fdd9ee45e72eeca011a7f24c8d0ed44aba28a1.zip external_llvm-b2fdd9ee45e72eeca011a7f24c8d0ed44aba28a1.tar.gz external_llvm-b2fdd9ee45e72eeca011a7f24c8d0ed44aba28a1.tar.bz2 |
MC CFG: Remap enough for data too, analoguous to r188873.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAtom.cpp')
-rw-r--r-- | lib/MC/MCAtom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCAtom.cpp b/lib/MC/MCAtom.cpp index 17a7468..6510289 100644 --- a/lib/MC/MCAtom.cpp +++ b/lib/MC/MCAtom.cpp @@ -44,7 +44,7 @@ void MCAtom::remapForSplit(uint64_t SplitPt, void MCDataAtom::addData(const MCData &D) { Data.push_back(D); - if (Data.size() > Begin - End) + if (Data.size() > Begin - End - 1) remap(Begin, End + 1); } |