diff options
Diffstat (limited to 'src/ir')
-rw-r--r-- | src/ir/local-utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/local-utils.h b/src/ir/local-utils.h index 73d065e73..ef74a35eb 100644 --- a/src/ir/local-utils.h +++ b/src/ir/local-utils.h @@ -31,8 +31,8 @@ struct LocalGetCounter : public PostWalker<LocalGetCounter> { void analyze(Function* func) { analyze(func, func->body); } void analyze(Function* func, Expression* ast) { + num.clear(); num.resize(func->getNumLocals()); - std::fill(num.begin(), num.end(), 0); walk(ast); } |