Fix index of of range
This commit is contained in:
parent
a02c1e7996
commit
c2cbc05135
@ -2296,7 +2296,11 @@ fn resolveUse(
|
|||||||
defer _ = using_trail.pop();
|
defer _ = using_trail.pop();
|
||||||
|
|
||||||
for (uses) |use| {
|
for (uses) |use| {
|
||||||
const expr = .{ .node = handle.tree.nodes.items(.data)[use.*].lhs, .handle = handle };
|
const index = use.*;
|
||||||
|
|
||||||
|
if (handle.tree.nodes.items(.data).len <= index) continue;
|
||||||
|
|
||||||
|
const expr = .{ .node = handle.tree.nodes.items(.data)[index].lhs, .handle = handle };
|
||||||
const expr_type_node = (try resolveTypeOfNode(store, arena, expr)) orelse
|
const expr_type_node = (try resolveTypeOfNode(store, arena, expr)) orelse
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user