Skip to content

Commit af50634

Browse files
committed
XPR: document and refactor
1 parent 640e86f commit af50634

File tree

2 files changed

+90
-310
lines changed

2 files changed

+90
-310
lines changed

chb/arm/opcodes/ARMAdd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def pointer_arithmetic_expr() -> AST.ASTExpr:
394394
if rhs3.is_constant_expression:
395395
astree.set_ssa_value(str(hl_lhs), hl_rhs)
396396

397-
elif (hl_lhs_type is not None and hl_lhs_type.is_pointer):
397+
elif (hl_lhs_type is not None and hl_lhs_type.is_pointer and not has_cast()):
398398
hl_rhs = pointer_arithmetic_expr()
399399
if str(hl_rhs).startswith("astmem_tmp"):
400400
chklogger.logger.error(

0 commit comments

Comments
 (0)