Skip to content

Commit

Permalink
fixed pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
lfrenot committed Oct 29, 2024
1 parent 0ba1bcc commit 3a454ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xdsl/dialects/llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
from xdsl.traits import IsTerminator, NoMemoryEffect, SymbolOpInterface
from xdsl.utils.exceptions import VerifyException
from xdsl.utils.hints import isa
from xdsl.utils.isattr import isattr
from xdsl.utils.str_enum import StrEnum

GEP_USE_SSA_VAL = -2147483648
Expand Down Expand Up @@ -1332,7 +1333,7 @@ def parse(cls, parser: Parser):

def print(self, printer: Printer) -> None:
printer.print("(")
if isinstance(self.value, IntegerAttr) and self.result.type == IntegerType(64):
if isattr(self.value, AnyIntegerAttr) and self.result.type == IntegerType(64):
self.value.print_without_type(printer)
else:
printer.print(self.value)
Expand Down

0 comments on commit 3a454ba

Please sign in to comment.