Basic check support for adapters. (#3874)

No support is provided yet for converting between a type and an adapter
for that type.
This commit is contained in:
Richard Smith
2024-04-10 09:57:48 +00:00
committed by GitHub
parent e8430dda81
commit 28ceb4dd4e
19 changed files with 1642 additions and 43 deletions
+5
View File
@@ -26,6 +26,11 @@ static auto FatalErrorIfEncountered(InstT inst) -> void {
<< inst;
}
auto HandleAdaptDecl(FunctionContext& /*context*/, SemIR::InstId /*inst_id*/,
SemIR::AdaptDecl inst) -> void {
FatalErrorIfEncountered(inst);
}
auto HandleAddrOf(FunctionContext& context, SemIR::InstId inst_id,
SemIR::AddrOf inst) -> void {
context.SetLocal(inst_id, context.GetValue(inst.lvalue_id));