projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e0511de
)
MC CFG: Remap enough for the inserted instruction.
author
Ahmed Bougacha
<ahmed.bougacha@gmail.com>
Wed, 21 Aug 2013 07:27:47 +0000
(07:27 +0000)
committer
Ahmed Bougacha
<ahmed.bougacha@gmail.com>
Wed, 21 Aug 2013 07:27:47 +0000
(07:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188873
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/MCAtom.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MCAtom.cpp
b/lib/MC/MCAtom.cpp
index 2626b39db4c744498c0f5ad51063e22bdf86d3f4..f3ea6c344d896fc4ca8051a8268163abf9b9a3e5 100644
(file)
--- a/
lib/MC/MCAtom.cpp
+++ b/
lib/MC/MCAtom.cpp
@@
-72,8
+72,8
@@
MCDataAtom *MCDataAtom::split(uint64_t SplitPt) {
// MCTextAtom
void MCTextAtom::addInst(const MCInst &I, uint64_t Size) {
- if (NextInstAddress > End)
- remap(Begin, NextInstAddress);
+ if (NextInstAddress
+ Size - 1
> End)
+ remap(Begin, NextInstAddress
+ Size - 1
);
Insts.push_back(MCDecodedInst(I, NextInstAddress, Size));
NextInstAddress += Size;
}