std.zig.Parse: Fix assertion (#16500)

The assert was copied from a few lines above without updating the target variable.
This commit is contained in:
Zachary Raineri 2023-07-23 19:18:02 -05:00 committed by GitHub
parent a03fee465b
commit 7dcbabef51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3818,7 +3818,7 @@ fn parseIf(p: *Parse, comptime bodyParseFn: fn (p: *Parse) Error!Node.Index) !No
});
_ = try p.parsePayload();
const else_expr = try bodyParseFn(p);
assert(then_expr != 0);
assert(else_expr != 0);
return p.addNode(.{
.tag = .@"if",