Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change assert and instead raise diagnostics error #34

Merged
merged 5 commits into from
Mar 26, 2024

Conversation

SooluThomas
Copy link
Contributor

Assertions cause EOFFailure in the compiler and this PR fixes one such assert.

@SooluThomas SooluThomas requested a review from a team as a code owner March 26, 2024 16:24
lib/AST/ASTGates.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@taalexander taalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@SooluThomas SooluThomas merged commit f6d695f into main Mar 26, 2024
3 checks passed
@SooluThomas SooluThomas deleted the soo-remove-assert branch March 26, 2024 18:27
SooluThomas added a commit to openqasm/qe-compiler that referenced this pull request Mar 27, 2024
## Summary

This PR adds tests for the updates made in
openqasm/qe-qasm#34. This update is made so that
the compiler doesn't fail assertion, but instead raises appropriate
errors
Zhaoyilunnn pushed a commit to Zhaoyilunnn/qe-compiler that referenced this pull request Mar 28, 2024
…nqasm#305)

## Summary

This PR adds tests for the updates made in
openqasm/qe-qasm#34. This update is made so that
the compiler doesn't fail assertion, but instead raises appropriate
errors
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.

2 participants