Skip to content

Commit

Permalink
Merge pull request #7086 from a7ehuo/fix-isTheVirtualCallNodeForAGuar…
Browse files Browse the repository at this point in the history
…dedInlinedCall

Fix check on virtualCallNodeForAGuardedInlinedCall
  • Loading branch information
jdmpapin authored Aug 14, 2023
2 parents 8eb68ef + 3411f19 commit d44b9a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/il/OMRNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5714,7 +5714,7 @@ OMR::Node::chkThrowInsertedByOSR()
bool
OMR::Node::isTheVirtualCallNodeForAGuardedInlinedCall()
{
if (self()->getOpCode().isCall())
if (self()->getOpCode().isCall() && !self()->isArrayCopyCall())
return _flags.testAny(virtualCallNodeForAGuardedInlinedCall);
else
return false;
Expand All @@ -5739,7 +5739,7 @@ OMR::Node::resetIsTheVirtualCallNodeForAGuardedInlinedCall()
bool
OMR::Node::chkTheVirtualCallNodeForAGuardedInlinedCall()
{
return self()->getOpCode().isCall() && _flags.testAny(virtualCallNodeForAGuardedInlinedCall);
return self()->getOpCode().isCall() && !self()->isArrayCopyCall() && _flags.testAny(virtualCallNodeForAGuardedInlinedCall);
}

/**
Expand Down

0 comments on commit d44b9a1

Please sign in to comment.