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

Simplify Override Checking, Only Do It When Assertions Are Enabled #trivial #253

Merged
merged 2 commits into from
May 11, 2017

Conversation

Adlai-Holler
Copy link
Member

A quickie.

  • Remove call to [super initialize]. The runtime will traverse the class hierarchy for us.
  • Only run the override checking code when assertions are enabled.
  • Check Method != Method rather than IMP != IMP because it's faster and simpler.

@Adlai-Holler Adlai-Holler changed the title Simplify Override Checking, Only Do It When Assertions Are Enabled Simplify Override Checking, Only Do It When Assertions Are Enabled #trivial May 9, 2017
@ghost
Copy link

ghost commented May 9, 2017

🚫 CI failed with log

Copy link
Member

@nguyenhuy nguyenhuy left a comment

Choose a reason for hiding this comment

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

Sweet!

@ghost
Copy link

ghost commented May 11, 2017

🚫 CI failed with log

@ghost
Copy link

ghost commented May 11, 2017

🚫 CI failed with log

@maicki
Copy link
Contributor

maicki commented May 11, 2017

@Adlai-Holler Hey - the CI is currently failing, because if we build for release the GetASDisplayNodeFlags / GetASDisplayNodeMethodOverrides are not used what results in a warning. Maybe let's move that. Maybe move it into the preprocessor flag or use an __unused before.

screen shot 2017-05-11 at 7 10 29 am

Copy link
Contributor

@maicki maicki left a comment

Choose a reason for hiding this comment

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

After fixing the CI looks good to me!

@Adlai-Holler Adlai-Holler merged commit 538a02f into master May 11, 2017
@Adlai-Holler Adlai-Holler deleted the AHSimplerInitialize branch May 11, 2017 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants