diff options
| -rw-r--r-- | binaryninjaapi.h | 2 | ||||
| -rw-r--r-- | lowlevelil.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 74840e95..b20d1b22 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1269,7 +1269,7 @@ namespace BinaryNinja ExprId AddInstruction(ExprId expr); ExprId Nop(); - ExprId SetRegister(size_t size, uint32_t reg, ExprId val); + ExprId SetRegister(size_t size, uint32_t reg, ExprId val, uint32_t flags = 0); ExprId SetRegisterSplit(size_t size, uint32_t high, uint32_t low, ExprId val); ExprId SetFlag(uint32_t flag, ExprId val); ExprId Load(size_t size, ExprId addr); diff --git a/lowlevelil.cpp b/lowlevelil.cpp index 7c30df9d..9d515836 100644 --- a/lowlevelil.cpp +++ b/lowlevelil.cpp @@ -58,9 +58,9 @@ ExprId LowLevelILFunction::Nop() } -ExprId LowLevelILFunction::SetRegister(size_t size, uint32_t reg, ExprId val) +ExprId LowLevelILFunction::SetRegister(size_t size, uint32_t reg, ExprId val, uint32_t flags) { - return AddExpr(LLIL_SET_REG, size, 0, reg, val); + return AddExpr(LLIL_SET_REG, size, flags, reg, val); } |
