1
Fork 0

ICE when checking LocalInfo on runtime MIR.

This commit is contained in:
Camille GILLOT 2023-03-10 10:29:41 +00:00
parent 50d0959a2f
commit 526a2c7521
5 changed files with 27 additions and 27 deletions

View file

@ -242,8 +242,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
let full_debug_info = bx.sess().opts.debuginfo == DebugInfo::Full;
// FIXME(eddyb) maybe name the return place as `_0` or `return`?
if local == mir::RETURN_PLACE && !self.mir.local_decls[mir::RETURN_PLACE].is_user_variable()
{
if local == mir::RETURN_PLACE {
return;
}