-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
llvm/lib/CodeGen/TargetSchedule.cpp:132:12: warning: Assert statement modifies 'NIter' #90982
Conversation
I'm new to this project. Please let me know if this change is OK and if any tests required. |
No test is needed. Please change the title of this PR & commit message title to informative text (instead of a URL). By writing |
Could you update the title of the commit to something like I'd also suggest to move the " |
closes llvm#90328 llvm/lib/CodeGen/TargetSchedule.cpp:132:12: warning: Assert statement modifies 'NIter'
Got it. Thanks for the suggestion :) |
… modifies 'NIter' (llvm#90982) Modified the assert statement
…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)
Modified the assert statement