Skip to content

Conversation

@kyulee-com
Copy link
Contributor

No description provided.

@kyulee-com
Copy link
Contributor Author

@GuillaumeBelz This is the fix for it. Thanks!

@github-actions
Copy link

github-actions bot commented Jul 10, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

Comment on lines 122 to 123
assert(Index + 1 == NodeIdMap.size() &&
"Expected size of NodeMap to increment by 1");
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Parens and perhaps a message something like below would give clearer hint on the intent of the assert.

        assert((Index + 1 == NodeIdMap.size()) &&
               "Expected 'Current' to not already exist in 'NodeIdMap'");

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the suggestion. I slightly changed the wordings for clarification.

Copy link
Contributor

@GuillaumeBelz GuillaumeBelz left a comment

Choose a reason for hiding this comment

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

👍

@kyulee-com kyulee-com merged commit d9d977f into llvm:main Jul 11, 2024
aaryanshukla pushed a commit to aaryanshukla/llvm-project that referenced this pull request Jul 14, 2024
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.

3 participants