Skip to content

[sil] Add a small helper to SILBuilder to get the loc of the builder's current insertion point. #34783

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

Conversation

gottesmm
Copy link
Contributor

I also added const to a few methods as well.

This is useful when using:

SILBuilderWithScope::insertAfter(function_ref<void (SILBuilder)>)

to create instructions using the SILBuilder's insertion point's loc.

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

…s current insertion point.

I also added const to a few methods as well.

This is useful when using:

```
SILBuilderWithScope::insertAfter(function_ref<void (SILBuilder)>)
```

to create instructions using the SILBuilder's insertion point's loc.
@gottesmm gottesmm force-pushed the pr-247c2c443ee86e229635adc8b92d98372edd8056 branch from ebd0a08 to f8d0d02 Compare November 17, 2020 19:27
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm gottesmm merged commit 04dfa5b into swiftlang:main Nov 17, 2020
@gottesmm gottesmm deleted the pr-247c2c443ee86e229635adc8b92d98372edd8056 branch November 17, 2020 22:31
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.

1 participant