mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 18:01:07 +01:00
Remove support for addr (#6375)
Every test that used `addr` before #6283 should be using `ref` after this PR. In most cases that was done in #6283, but this PR transitions a few that I missed in that first pass. In addition, #6283 cloned the old `addr` tests from `foo.carbon` to `foo_addr.carbon` in order to maintain test coverage during the transition; this PR removes those cloned tests.
This commit is contained in:
@@ -113,7 +113,6 @@ auto Function::GetParamPatternInfoFromPatternId(const File& sem_ir,
|
||||
auto inst_id = pattern_id;
|
||||
auto inst = sem_ir.insts().Get(inst_id);
|
||||
|
||||
sem_ir.insts().TryUnwrap(inst, inst_id, &AddrPattern::inner_id);
|
||||
sem_ir.insts().TryUnwrap(inst, inst_id, &VarPattern::subpattern_id);
|
||||
auto [param_pattern, param_pattern_id] =
|
||||
sem_ir.insts().TryUnwrap(inst, inst_id, &AnyParamPattern::subpattern_id);
|
||||
|
||||
Reference in New Issue
Block a user