forked from OSchip/llvm-project
Remove a InvalidateInstructionCache call with incorrect size.
llvm-svn: 58898
This commit is contained in:
parent
b31a717527
commit
686a725b45
|
@ -1133,10 +1133,6 @@ void JITEmitter::startGVStub(const GlobalValue* GV, unsigned StubSize,
|
||||||
|
|
||||||
void *JITEmitter::finishGVStub(const GlobalValue* GV) {
|
void *JITEmitter::finishGVStub(const GlobalValue* GV) {
|
||||||
NumBytes += getCurrentPCOffset();
|
NumBytes += getCurrentPCOffset();
|
||||||
|
|
||||||
// Invalidate the icache if necessary.
|
|
||||||
sys::Memory::InvalidateInstructionCache(BufferBegin, NumBytes);
|
|
||||||
|
|
||||||
std::swap(SavedBufferBegin, BufferBegin);
|
std::swap(SavedBufferBegin, BufferBegin);
|
||||||
BufferEnd = SavedBufferEnd;
|
BufferEnd = SavedBufferEnd;
|
||||||
CurBufferPtr = SavedCurBufferPtr;
|
CurBufferPtr = SavedCurBufferPtr;
|
||||||
|
|
Loading…
Reference in New Issue