Skip to content

[Fixbug] Fix bug in IR Printer#123

Merged
hjjq merged 1 commit intohidet-org:mainfrom
hjjq:fix-printer
Feb 27, 2023
Merged

[Fixbug] Fix bug in IR Printer#123
hjjq merged 1 commit intohidet-org:mainfrom
hjjq:fix-printer

Conversation

@hjjq
Copy link
Copy Markdown
Collaborator

@hjjq hjjq commented Feb 27, 2023

Following #122 , When evaluating Expr as a boolean in Python, an error will be thrown.
The error will be triggered by the IR Printer when it is visiting a return statement. It intends to check if the Expr object is None but triggers __bool__ in Expr.
This bug can be reproduced with hidet.option.save_lower_ir(True)

@hjjq hjjq merged commit d9d6ebc into hidet-org:main Feb 27, 2023
@hjjq hjjq deleted the fix-printer branch February 27, 2023 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant