Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
kugesan1105 committed Aug 30, 2024
1 parent 0f49312 commit 6ef0c71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions jaclang/compiler/passes/main/fuse_typeinfo_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ def exit_atom_trailer(self, node: ast.AtomTrailer) -> None:
iteration_count += 1
if iteration_count > 50:
break

for i in range(1, len(atom_trailer_unwind)):
left = atom_trailer_unwind[i - 1]
right = atom_trailer_unwind[i]
Expand Down
3 changes: 1 addition & 2 deletions jaclang/compiler/passes/main/pyjac_ast_link_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import jaclang.compiler.absyntree as ast
from jaclang.compiler.passes import Pass
from jaclang.compiler.symtable import Symbol


class PyJacAstLinkPass(Pass):
Expand Down Expand Up @@ -167,7 +166,7 @@ def exit_ability_def(self, node: ast.AbilityDef) -> None:
node.target, ast.ArchRefChain
):
for arch in node.target.archs:
if arch.arch_name.sym and isinstance(arch.arch_name.sym, Symbol):
if arch.arch_name.sym:
arch.arch_name.sym.add_use(arch.arch_name)

def exit_param_var(self, node: ast.ParamVar) -> None:
Expand Down

0 comments on commit 6ef0c71

Please sign in to comment.