commit 82ad66b2f2bd822e6d195768da9e5247ed4d78cc (tree)
parent a31ba25a3dc7db037a29938fb4f040896edfdba9
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sun, 25 Jun 2023 01:02:55 -0700
liveness: fix merge typo logic error
Oops, I made a terrible mistake when applying a small fixup when merging
f10b9e8fd72aae33b127c18e3f8a64a4f56b1b69.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Liveness.zig b/src/Liveness.zig
@@ -625,7 +625,7 @@ pub fn categorizeOperand(
return .complex;
const then_body = air.extra[cond_extra.end..][0..cond_extra.data.then_body_len];
- const else_body = air.extra[cond_extra.end + cond_extra.data.then_body_len ..][0 .. cond_extra.data.then_body_len + cond_extra.data.else_body_len];
+ const else_body = air.extra[cond_extra.end + cond_extra.data.then_body_len ..][0..cond_extra.data.else_body_len];
if (then_body.len > 1 and air_tags[then_body[1]] != .unreach)
return .complex;
if (else_body.len > 1 and air_tags[else_body[1]] != .unreach)