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

Fix compilation issue for std::vector in some cases #1402

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

schweitzpgi
Copy link
Collaborator

The operator[] returns a reference, but the AST doesn't have a cast node. So the value appearing in the conditional is not loaded. This adds an explicit check and an error message if the load is returning an unexpected value.

Fix #1383.

Description

The operator[] returns a reference, but the AST doesn't have a cast
node. So the value appearing in the conditional is not loaded.
This adds an explicit check and an error message if the load is
returning an unexpected value.

Fix NVIDIA#1383.
Copy link
Collaborator

@1tnguyen 1tnguyen left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks, Eric.

@schweitzpgi schweitzpgi enabled auto-merge (squash) March 14, 2024 19:12
@schweitzpgi schweitzpgi merged commit bb711f7 into NVIDIA:main Mar 14, 2024
133 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2024
@bettinaheim bettinaheim changed the title Fix #1383: bridge not lowering to correct IR Fix compilation issue for std::vector in some cases Apr 17, 2024
@bettinaheim bettinaheim added the bug fix To be listed under Bug Fixes in the release notes label Apr 17, 2024
@bettinaheim bettinaheim added this to the release 0.7.1 milestone Apr 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fix To be listed under Bug Fixes in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nvq++ bridge compilation issue with std::vector<bool> argument
3 participants