Skip to content

Commit

Permalink
Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
rihi committed Nov 15, 2023
1 parent 12f2d24 commit 7b835e0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions decompiler/backend/variabledeclarations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@

from decompiler.backend.cexpressiongenerator import CExpressionGenerator
from decompiler.structures.ast.syntaxtree import AbstractSyntaxTree
from decompiler.structures.pseudo import DataflowObject, ExternConstant, ExternFunctionPointer, GlobalVariable, Operation, Pointer, Variable
from decompiler.structures.pseudo import (
DataflowObject,
Expression,
ExternConstant,
ExternFunctionPointer,
GlobalVariable,
Operation,
Pointer,
Variable,
)
from decompiler.structures.visitors.ast_dataflowobjectvisitor import BaseAstDataflowObjectVisitor
from decompiler.task import DecompilerTask
from decompiler.util.insertion_ordered_set import InsertionOrderedSet
Expand Down Expand Up @@ -64,7 +73,7 @@ def handle_obj(obj: DataflowObject):
match obj:
case GlobalVariable():
global_variables.add(obj)
if isinstance(obj.initial_value, GlobalVariable):
if isinstance(obj.initial_value, Expression):
handle_obj(obj.initial_value)

case ExternConstant():
Expand Down

0 comments on commit 7b835e0

Please sign in to comment.