Sema: do not call returnError when returning payload of error union

This commit is contained in:
Veikka Tuominen
2022-04-23 14:48:16 +03:00
committed by Andrew Kelley
parent 53a5aee3b3
commit e369752430
3 changed files with 3 additions and 5 deletions

View File

@@ -4839,7 +4839,7 @@ pub fn analyzeFnBody(mod: *Module, func: *Fn, arena: Allocator) SemaError!Air {
};
defer sema.deinit();
// reset in case case calls to errorable functions are removed.
// reset in case calls to errorable functions are removed.
func.calls_or_awaits_errorable_fn = false;
// First few indexes of extra are reserved and set at the end.