mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 22:26:38 +00:00
Change from ToImplicit to AsDesugared (#5591)
This changes `ToImplicit` to `AsDesugared`, and adds a `GetLocIdForDesugaring` to `InstStore`. In particular, I'm motivated by the latter, to make it clearer what the intended call convention is.
This commit is contained in:
1 parent
6831c98d74
commit
a85d292f8d
9 files changed
+45
-39
No files matched your search
@@ -17,7 +17,7 @@ namespace Carbon::Check {
|
||||
// Returns the `Op` function for the specified operator.
|
||||
static auto GetOperatorOpFunction(Context& context, SemIR::LocId loc_id,
|
||||
Operator op) -> SemIR::InstId {
|
||||
auto implicit_loc_id = context.insts().GetCanonicalLocId(loc_id).ToImplicit();
|
||||
auto implicit_loc_id = context.insts().GetLocIdForDesugaring(loc_id);
|
||||
|
||||
// Look up the interface, and pass it any generic arguments.
|
||||
auto interface_id =
|
||||
|
||||
Reference in new issue
Block a user