1
Fork 0

Remove LocalKind::Var.

This commit is contained in:
Camille GILLOT 2023-03-10 10:29:19 +00:00
parent d31386a52b
commit 50d0959a2f
7 changed files with 17 additions and 18 deletions

View file

@ -102,7 +102,7 @@ fn local_eligible_for_nrvo(body: &mut mir::Body<'_>) -> Option<Local> {
mir::LocalKind::Arg => return None,
mir::LocalKind::ReturnPointer => bug!("Return place was assigned to itself?"),
mir::LocalKind::Var | mir::LocalKind::Temp => {}
mir::LocalKind::Temp => {}
}
// If multiple different locals are copied to the return place. We can't pick a