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

Fix template instantiation of UDLs #45

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

Javier-varez
Copy link

Cherry-picked from upstream: llvm@ca844ab

Original commit message:

Previously, we would instantiate the UDL by marking the function as referenced and potentially binding to a temporary; this skipped transforming the call when the UDL was dependent on a template parameter.

Now, we defer all the work to instantiating the call expression for the UDL. This ensures that constant evaluation occurs at compile time rather than deferring until runtime.

Fixes Issue 54578.

Previously, we would instantiate the UDL by marking the function as
referenced and potentially binding to a temporary; this skipped
transforming the call when the UDL was dependent on a template
parameter.

Now, we defer all the work to instantiating the call expression for the
UDL. This ensures that constant evaluation occurs at compile time
rather than deferring until runtime.

Fixes Issue 54578.
@Javier-varez
Copy link
Author

The macOS build fail is expected since #42 was merged.

@Javier-varez Javier-varez merged commit 6453552 into ddln-llvm-14 Sep 8, 2022
@Javier-varez Javier-varez deleted the fix_template_instantiation_of_udls branch September 8, 2022 08:30
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.

3 participants