summaryrefslogtreecommitdiff
path: root/lowlevelilinstruction.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2018-01-31 21:08:05 -0500
committerPeter LaFosse <peter@vector35.com>2018-03-23 17:10:06 -0400
commit736bd9358ec8c1cdd1c77025b10e576983c4001c (patch)
tree9c861eeabf5267bd0ef748bc0a259dbfe183685b /lowlevelilinstruction.cpp
parent55e92538f37be39d915fa395287ff67a4c7dfdfb (diff)
Allow intrinsics to write flags
Diffstat (limited to 'lowlevelilinstruction.cpp')
-rw-r--r--lowlevelilinstruction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lowlevelilinstruction.cpp b/lowlevelilinstruction.cpp
index 61eef39b..e0602a13 100644
--- a/lowlevelilinstruction.cpp
+++ b/lowlevelilinstruction.cpp
@@ -2140,7 +2140,7 @@ ExprId LowLevelILInstruction::CopyTo(LowLevelILFunction* dest,
for (auto& i : GetParameterExprs<LLIL_INTRINSIC>())
params.push_back(subExprHandler(i));
return dest->Intrinsic(GetOutputRegisterOrFlagList<LLIL_INTRINSIC>(), GetIntrinsic<LLIL_INTRINSIC>(),
- params, *this);
+ params, flags, *this);
case LLIL_INTRINSIC_SSA:
for (auto& i : GetParameterExprs<LLIL_INTRINSIC_SSA>())
params.push_back(subExprHandler(i));
@@ -3213,9 +3213,9 @@ ExprId LowLevelILFunction::SystemCall(const ILSourceLocation& loc)
ExprId LowLevelILFunction::Intrinsic(const vector<RegisterOrFlag>& outputs, uint32_t intrinsic,
- const vector<ExprId>& params, const ILSourceLocation& loc)
+ const vector<ExprId>& params, uint32_t flags, const ILSourceLocation& loc)
{
- return AddExprWithLocation(LLIL_INTRINSIC, loc, 0, 0,
+ return AddExprWithLocation(LLIL_INTRINSIC, loc, 0, flags,
outputs.size(), AddRegisterOrFlagList(outputs), intrinsic,
AddExprWithLocation(LLIL_CALL_PARAM, loc, 0, 0, params.size(), AddOperandList(params)));
}