You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ast] Add wrapInOptionalType to CanType and TypeBase.
This API just wraps the current type T into an Optional<T> and returns the
Optional<T> type. We use this all the time in the optimizer and I found I needed
it in SILGen as well but at the AST level, hence the addition.
In the next commit, I change the API in SILType that does this to use this
helper instead. I am doing that to make it easier to cherry-pick this with a
subsequent change I am making to fix a bug.
0 commit comments