diff --git a/compiler/aarch64/codegen/BinaryEvaluator.cpp b/compiler/aarch64/codegen/BinaryEvaluator.cpp index eb9479879a..ce282f7d08 100644 --- a/compiler/aarch64/codegen/BinaryEvaluator.cpp +++ b/compiler/aarch64/codegen/BinaryEvaluator.cpp @@ -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 {