diff options
Diffstat (limited to 'lowlevelil.cpp')
| -rw-r--r-- | lowlevelil.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lowlevelil.cpp b/lowlevelil.cpp index 81104419..385c55c5 100644 --- a/lowlevelil.cpp +++ b/lowlevelil.cpp @@ -581,11 +581,13 @@ bool LowLevelILFunction::GetExprText(Architecture* arch, ExprId expr, vector<Ins } -bool LowLevelILFunction::GetInstructionText(Architecture* arch, size_t instr, vector<InstructionTextToken>& tokens) +bool LowLevelILFunction::GetInstructionText(Function* func, Architecture* arch, size_t instr, + vector<InstructionTextToken>& tokens) { size_t count; BNInstructionTextToken* list; - if (!BNGetLowLevelILInstructionText(m_object, arch->GetObject(), instr, &list, &count)) + if (!BNGetLowLevelILInstructionText(m_object, func ? func->GetObject() : nullptr, arch->GetObject(), + instr, &list, &count)) return false; tokens.clear(); |
