Skip to content

Revert "llvm/lib/CodeGen/TargetSchedule.cpp:132:12: warning: Assert statement modifies 'NIter'" #91079

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

Merged
merged 1 commit into from
May 4, 2024

Conversation

dwblaikie
Copy link
Collaborator

Reverts #90982

NIter was only declared in !NDEBUG, and only used for assertions - so it was correct that it was incremented inside the assertion. (& in fact now the non-asserts build fails, because the variable is incremented even though it isn't declared)

@dwblaikie dwblaikie added the skip-precommit-approval PR for CI feedback, not intended for review label May 4, 2024
@dwblaikie dwblaikie merged commit 0044856 into main May 4, 2024
@dwblaikie dwblaikie deleted the revert-90982-90328 branch May 4, 2024 18:43
sookach pushed a commit to sookach/llvm-project that referenced this pull request May 4, 2024
…tatement modifies 'NIter'" (llvm#91079)

Reverts llvm#90982

NIter was only declared in !NDEBUG, and only used for assertions - so it
was correct that it was incremented inside the assertion. (& in fact now
the non-asserts build fails, because the variable is incremented even
though it isn't declared)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-precommit-approval PR for CI feedback, not intended for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant