From d59baf97787b98e0f50e67c259be45b7e2d69471 Mon Sep 17 00:00:00 2001 From: KONNO Kazuhiro Date: Fri, 26 Jul 2019 14:56:05 +0900 Subject: [PATCH] AArch64: Fix genericBinaryEvaluator() This commit fixes genericBinaryEvaluator() for AArch64. The function fails with trgReg being NULL in a specific case. Signed-off-by: KONNO Kazuhiro --- compiler/aarch64/codegen/BinaryEvaluator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {