summaryrefslogtreecommitdiff
path: root/lowlevelil.cpp
diff options
context:
space:
mode:
authorRyan Snyder <ryan@vector35.com>2018-03-28 13:45:43 -0400
committerRyan Snyder <ryan@vector35.com>2018-03-28 13:45:43 -0400
commitf37eb6cc18abf4dbb5b03175e4cb980c3e9a7ae2 (patch)
treec48c414c8724bd9a913214e3662d9062b7b3387e /lowlevelil.cpp
parentc4e2ab35793daf5d138965eb4d530443f4b54d49 (diff)
Fix default flag write generation for some ops
Diffstat (limited to 'lowlevelil.cpp')
-rw-r--r--lowlevelil.cpp4
1 files changed, 4 insertions, 0 deletions
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),