location -> loc abbreviation (#3826)

This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2024-03-28 18:15:18 +00:00
1 parent 72564a08d4
commit b5d28f2c4b
48 files changed
+341 -373

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ static auto HandleDiscardedExpr(Context& context, SemIR::InstId expr_id)
// If we discard an initializing expression, convert it to a value or
// reference so that it has something to initialize.
auto expr = context.insts().Get(expr_id);
Convert(context, context.insts().GetLocationId(expr_id), expr_id,
Convert(context, context.insts().GetLocId(expr_id), expr_id,
{.kind = ConversionTarget::Discarded, .type_id = expr.type_id()});
// TODO: This will eventually need to do some "do not discard" analysis.