From f37eb6cc18abf4dbb5b03175e4cb980c3e9a7ae2 Mon Sep 17 00:00:00 2001 From: Ryan Snyder Date: Wed, 28 Mar 2018 13:45:43 -0400 Subject: Fix default flag write generation for some ops --- lowlevelil.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lowlevelil.cpp') diff --git a/lowlevelil.cpp b/lowlevelil.cpp index 91db6ab3..79138159 100644 --- a/lowlevelil.cpp +++ b/lowlevelil.cpp @@ -314,7 +314,11 @@ ExprId LowLevelILFunction::GetExprForRegisterOrConstantOperation(BNLowLevelILOpe if (operandCount == 0) return AddExpr(op, size, 0); if (operandCount == 1) + { + if (op == LLIL_SET_REG) + return GetExprForRegisterOrConstant(operands[0], size); return AddExpr(op, size, 0, GetExprForRegisterOrConstant(operands[0], size)); + } if (operandCount == 2) { return AddExpr(op, size, 0, GetExprForRegisterOrConstant(operands[0], size), -- cgit v1.3.1