summaryrefslogtreecommitdiff
path: root/lowlevelil.cpp
diff options
context:
space:
mode:
authorRyan Snyder <ryan@vector35.com>2018-07-09 22:58:18 -0400
committerRyan Snyder <ryan@vector35.com>2018-07-09 23:00:18 -0400
commit838cb56a8505fc78d09befedd58dd632eeb2ee62 (patch)
tree797da072919ae25e8d26a90663c0760e9ef29707 /lowlevelil.cpp
parent69743572b93f2e29583751d1ec9656fbb34b9411 (diff)
parent4f1a7824357ab58d868dbd675af9b152fc3694e9 (diff)
Merge branch 'dev'
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),