Skip to content

Commit

Permalink
Use self() to call functions in doBinaryEncoding
Browse files Browse the repository at this point in the history
In `doBinaryEncoding` function, change the calling function to be called by `self()`.

Signed-off-by: simonameng <simonameng97@gmail.com>
  • Loading branch information
simonameng committed Jul 23, 2019
1 parent 17a0f9b commit dc7cc42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/z/codegen/OMRCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2335,9 +2335,9 @@ OMR::Z::CodeGenerator::doBinaryEncoding()
cursor = cursor->getNext();
}

if (comp()->getOption(TR_EntryBreakPoints))
if (self()->comp()->getOption(TR_EntryBreakPoints))
{
TR::Node *node = comp()->getStartTree()->getNode();
TR::Node *node = self()->comp()->getStartTree()->getNode();
cursor = generateS390EInstruction(self(), TR::InstOpCode::BREAK, node, cursor);
}

Expand Down

0 comments on commit dc7cc42

Please sign in to comment.