nponeccop/HNC

Optimization of locals5.hn fails to inline tmp

Closed this issue · 1 comments

HN source:

hnMain = {
    a = 5
    tmp z = {
        y = a
        print y
    }
    tmp 7
}

Expected result:

hnMain = print 5

Actual result:

hnMain = {
    tmp z = print 5
    tmp 7
}

Fixed