mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-28 08:22:15 +00:00
skip traversal if there are no temps
This commit is contained in:
parent
7feb0b7077
commit
d3654e38f0
@ -309,9 +309,9 @@ export class Flow {
|
|||||||
}
|
}
|
||||||
var local: Local;
|
var local: Local;
|
||||||
if (except) {
|
if (except) {
|
||||||
let usedLocals = new Set<i32>();
|
if (temps && temps.length) {
|
||||||
traverse(except, usedLocals, findUsedLocals);
|
let usedLocals = new Set<i32>();
|
||||||
if (temps) {
|
traverse(except, usedLocals, findUsedLocals);
|
||||||
for (let i = 0, k = temps.length; i < k; ++i) {
|
for (let i = 0, k = temps.length; i < k; ++i) {
|
||||||
if (!usedLocals.has(temps[i].index)) {
|
if (!usedLocals.has(temps[i].index)) {
|
||||||
local = temps[i];
|
local = temps[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user