Skip to content

Conversation

@swolchok
Copy link
Contributor

The code gated under this if does disallowed static_casts if the if condition doesn't pass; this is what if constexpr is for.

[ghstack-poisoned]
@swolchok
Copy link
Contributor Author

swolchok commented Jan 28, 2025

@pytorch-bot
Copy link

pytorch-bot bot commented Jan 28, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/8011

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 2 Pending

As of commit 4740f9e with merge base 3540723 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 28, 2025
swolchok added a commit that referenced this pull request Jan 28, 2025
#7987)

The code gated under this `if` does disallowed static_casts if the `if` condition doesn't pass; this is what `if constexpr` is for.

ghstack-source-id: 8286f21
ghstack-comment-id: 2620014279
Pull Request resolved: #8011
@swolchok
Copy link
Contributor Author

landing despite full CI not running because this change is isolated and I've manually tested it

@swolchok swolchok merged commit 520e0bc into main Jan 28, 2025
7 of 9 checks passed
@swolchok swolchok deleted the gh/swolchok/213/head branch January 28, 2025 21:03
YIWENX14 pushed a commit that referenced this pull request Jan 28, 2025
#7987) (#8011)

The code gated under this `if` does disallowed `static_cast`s if the `if` condition doesn't pass; this is what `if constexpr` is for.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants