diff options
| author | Brandon Miller <brandon@vector35.com> | 2025-04-14 12:43:50 -0400 |
|---|---|---|
| committer | Brandon Miller <brandon@vector35.com> | 2025-04-15 15:10:16 -0400 |
| commit | a6f64bf19f966f5ecbaab0a9eff85ecbaa573317 (patch) | |
| tree | 99a688ee5533527112f66e6f80933b00e5714724 /lang/rust/pseudorust.h | |
| parent | 13445bad31b60db063d454fefa6d6697889f428d (diff) | |
Fix pseudo C/Rust absent lhs on comparison
This issue was caused because HLIL_SPLIT was not being handled on the
left and right expressions of HLIL_IF instructions
Diffstat (limited to 'lang/rust/pseudorust.h')
| -rw-r--r-- | lang/rust/pseudorust.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/rust/pseudorust.h b/lang/rust/pseudorust.h index 96e656c2..33794a3c 100644 --- a/lang/rust/pseudorust.h +++ b/lang/rust/pseudorust.h @@ -44,6 +44,8 @@ class PseudoRustFunction: public BinaryNinja::LanguageRepresentationFunction BinaryNinja::HighLevelILTokenEmitter& tokens, BinaryNinja::DisassemblySettings* settings); void AppendFieldTextTokens(const BinaryNinja::HighLevelILInstruction& var, uint64_t offset, size_t memberIndex, size_t size, BinaryNinja::HighLevelILTokenEmitter& tokens, bool deref); + void AppendDefaultSplitExpr(const BinaryNinja::HighLevelILInstruction& instr, BinaryNinja::HighLevelILTokenEmitter& tokens, + BinaryNinja::DisassemblySettings* settings, BNOperatorPrecedence precedence); bool IsMutable(const BinaryNinja::Variable& var) const; void GetExprText(const BinaryNinja::HighLevelILInstruction& instr, BinaryNinja::HighLevelILTokenEmitter& tokens, |
