diff options
Diffstat (limited to 'highlevelilinstruction.h')
| -rw-r--r-- | highlevelilinstruction.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/highlevelilinstruction.h b/highlevelilinstruction.h index 6947479c..9cdb9b1a 100644 --- a/highlevelilinstruction.h +++ b/highlevelilinstruction.h @@ -293,9 +293,9 @@ namespace BinaryNinja struct HighLevelILInstructionBase : public BNHighLevelILInstruction { #ifdef BINARYNINJACORE_LIBRARY - HighLevelILFunction* function; + HighLevelILFunction* function = nullptr; #else - Ref<HighLevelILFunction> function; + Ref<HighLevelILFunction> function = nullptr; #endif size_t exprIndex, instructionIndex; bool ast; @@ -338,6 +338,9 @@ namespace BinaryNinja MediumLevelILInstruction GetMediumLevelIL() const; MediumLevelILInstruction GetMediumLevelILSSAForm() const; + // Return (and leak) a string describing the instruction for debugger use + char* Dump() const; + void Replace(ExprId expr); size_t GetInstructionIndex() const; |
