Skip to content
Snippets Groups Projects
Commit b702d851 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Optimizer: Fixed reference underflow in treeopt.

The reference count for reused nodes needs to be bumped once
for every occurence...

This bug was triggered at least by the empty loop ==> assignment rules,
with the effect that the free list in block alloc got corrupted.

Example code that triggered the bug:

  int i;
  array a;
  for(; i < sizeof(a); i++)
    ;
parent 20b626a1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment