Skip to content

Reenable and fix warning 4457 - declaration of '' hides function parameter #970

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 18, 2016

Conversation

curtisman
Copy link
Contributor

No description provided.

@@ -387,8 +387,7 @@ void EtwTrace::LogLoopBodyLoadEvent(FunctionBody* body, LoopHeader* loopHeader,
{
methodInfo.method_id = iJIT_GetNewMethodID();
size_t len = utf8::EncodeInto(utf8MethodName, methodName, (charcount_t)methodLength);
uint loopNumber = body->GetLoopNumber(loopHeader) + 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

If this loopNumber is the same as the parameter and that data is contained in loopHeader, should we remove that parameter and extract that value from loopHeader? Otherwise, is there an assertion that should be made about whether the parameter loopNumber matches the value in body->GetLoopNumber(loopHeader)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added assert

@dilijev
Copy link
Contributor

dilijev commented May 11, 2016

LGTM :shipit:

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.

4 participants