Skip to content

Commit

Permalink
Merge pull request #6611 from klangman/fix-p-s2iEvaluator-assert
Browse files Browse the repository at this point in the history
Fix an assert in OMR::Power::TreeEvaluator::s2iEvaluator()
  • Loading branch information
0xdaryl committed Jul 15, 2022
2 parents c7c8d66 + bd5659e commit edf2ae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/p/codegen/UnaryEvaluator.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2021 IBM Corp. and others
* Copyright (c) 2000, 2022 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -278,7 +278,7 @@ TR::Register *OMR::Power::TreeEvaluator::s2iEvaluator(TR::Node *node, TR::CodeGe
TR::Node *child = node->getFirstChild();
TR::Register *trgReg = cg->allocateRegister();

if (child->getOpCode().isLoad() && !child->getRegister() && child->getReferenceCount() == 1)
if (child->getOpCode().isLoadVar() && !child->getRegister() && child->getReferenceCount() == 1)
{
TR::LoadStoreHandler::generateLoadNodeSequence(cg, trgReg, child, TR::InstOpCode::lha, 2);
}
Expand Down

0 comments on commit edf2ae5

Please sign in to comment.