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 | 4020363746052c8fffeda5e21b5a1c2e6b428921 (patch) | |
tree | 90a591da6fca8883119c70364d2dde48befeadf9 /llvm/lib | |
parent | 47c2a75e8d2cdcc0a37e2796686ea30e22bf8b6e (diff) | |
download | bcm5719-llvm-4020363746052c8fffeda5e21b5a1c2e6b428921.tar.gz bcm5719-llvm-4020363746052c8fffeda5e21b5a1c2e6b428921.zip |
MC CFG: Remap enough for data too, analoguous to r188873.
llvm-svn: 188925
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/MC/MCAtom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAtom.cpp b/llvm/lib/MC/MCAtom.cpp index 17a74687e1a..651028950e7 100644 --- a/llvm/lib/MC/MCAtom.cpp +++ b/llvm/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); } |