mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-02 09:49:09 +00:00
MC CFG: Remap enough for the inserted instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188873 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e0511ded94
commit
3ec498faad
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user