Fixed an error during ir parsing.
This commit is contained in:
parent
9ff5e811a8
commit
237ead3921
1 changed files with 1 additions and 1 deletions
|
|
@ -764,7 +764,7 @@ const IRParserState = struct {
|
||||||
|
|
||||||
var it = self.branches.iterator();
|
var it = self.branches.iterator();
|
||||||
while (it.next()) |branch| {
|
while (it.next()) |branch| {
|
||||||
if (start < branch.key_ptr.* and branch.key_ptr.* < end) {
|
if (start <= branch.key_ptr.* and branch.key_ptr.* <= end) {
|
||||||
if (branch.value_ptr.* == 0) {
|
if (branch.value_ptr.* == 0) {
|
||||||
self.indices.items[branch.key_ptr.*].u32 = jump_addr;
|
self.indices.items[branch.key_ptr.*].u32 = jump_addr;
|
||||||
try todel.append(self.allocator, branch.key_ptr.*);
|
try todel.append(self.allocator, branch.key_ptr.*);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue