Skip to content

Commit

Permalink
Fixup private linkage preprologue calculation
Browse files Browse the repository at this point in the history
The `preProcInstruction` is the instruction that was before the JIT to JIT entry point before the arguments are loaded from the stack. This is the instruction we want to use as the entry point into the method.

Signed-off-by: Filip Jeremic <fjeremic@ca.ibm.com>
  • Loading branch information
fjeremic committed May 10, 2019
1 parent 5a9e757 commit c60759c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/z/codegen/OMRCodeGenerator.cpp
Expand Up @@ -2493,7 +2493,7 @@ OMR::Z::CodeGenerator::doBinaryEncoding()

self()->addToAtlas(data.cursorInstruction);

if (data.cursorInstruction->getOpCodeValue() == TR::InstOpCode::PROC)
if (data.cursorInstruction == data.preProcInstruction)
{
self()->setPrePrologueSize(self()->getBinaryBufferLength());
self()->comp()->getSymRefTab()->findOrCreateStartPCSymbolRef()->getSymbol()->getStaticSymbol()->setStaticAddress(self()->getBinaryBufferCursor());
Expand Down

0 comments on commit c60759c

Please sign in to comment.