Sema: do not call returnError when returning payload of error union
This commit is contained in:
committed by
Andrew Kelley
parent
53a5aee3b3
commit
e369752430
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user