aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-04-23 14:48:16 +0300
committerAndrew Kelley <andrew@ziglang.org>2022-05-16 17:42:51 -0700
commite369752430a1b3a50e57e11b9f0682d026c62feb (patch)
tree7538801877166bc4dddf9fbe7deab9ec54f868e3 /src/Module.zig
parent53a5aee3b3684a03c91236702c9304dce21279e2 (diff)
downloadzig-e369752430a1b3a50e57e11b9f0682d026c62feb.tar.gz
zig-e369752430a1b3a50e57e11b9f0682d026c62feb.zip
Sema: do not call `returnError` when returning payload of error union
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig
index cb38ddba45..11549ccda6 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -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.