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

Add location to some lowering TODOs that missed it #1387

Merged
merged 2 commits into from
Jan 14, 2022

Conversation

jeanPerier
Copy link
Collaborator

Improve TODO messages:

  • genLocation() was used instead of getCurrentLocation in many places that
    intended to print the current location and not an unknown one.
  • Thread/Compute the location when possible instead of using TODO_NOLOC.
  • Ensure the location is set when entering not yet implemented
    constructs (toLocation() might return an empty location in case the
    construct is the first of an anonymous program)

Improve TODO messages:

- `genLocation()` was used instead of `getCurrentLocation` in many places that
intended to print the current location.
- Thread/Compute the location when possible instead of using TODO_NOLOC.
- Ensure the location is set when entering not yet implemented
constructs (toLocation() might return an empty location in case the
construct is the first of an anonymous program)
flang/lib/Lower/Bridge.cpp Outdated Show resolved Hide resolved
flang/lib/Lower/Coarray.cpp Show resolved Hide resolved
Copy link
Collaborator

@psteinfeld psteinfeld left a comment

Choose a reason for hiding this comment

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

All builds, tests, and looks good.

@jeanPerier jeanPerier merged commit 94aa416 into fir-dev Jan 14, 2022
@jeanPerier jeanPerier deleted the jpr-add-location-to-todos branch January 14, 2022 14:05
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.

None yet

3 participants