Skip to content

Commit

Permalink
AArch64: Fix genericBinaryEvaluator()
Browse files Browse the repository at this point in the history
This commit fixes genericBinaryEvaluator() for AArch64.
The function fails with trgReg being NULL in a specific case.

Signed-off-by: KONNO Kazuhiro <konno@jp.ibm.com>
  • Loading branch information
knn-k committed Jul 26, 2019
1 parent c4a5982 commit d59baf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/aarch64/codegen/BinaryEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ genericBinaryEvaluator(TR::Node *node, TR::InstOpCode::Mnemonic regOp, TR::InstO
}
else if(1 == secondChild->getReferenceCount() && secondChild->getRegister() != NULL)
{
trgReg = src2Reg;
trgReg = secondChild->getRegister();
}
else
{
Expand Down

0 comments on commit d59baf9

Please sign in to comment.