diff options
Diffstat (limited to 'src/ir')
-rw-r--r-- | src/ir/branch-utils.h | 4 | ||||
-rw-r--r-- | src/ir/count.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ir/branch-utils.h b/src/ir/branch-utils.h index 50c71e8c9..e8fd25119 100644 --- a/src/ir/branch-utils.h +++ b/src/ir/branch-utils.h @@ -149,10 +149,10 @@ struct BranchSeeker : public PostWalker<BranchSeeker> { Name target; bool named = true; - Index found; + Index found = 0; Type valueType; - BranchSeeker(Name target) : target(target), found(0) {} + BranchSeeker(Name target) : target(target) {} void noteFound(Expression* value) { found++; diff --git a/src/ir/count.h b/src/ir/count.h index 1fef3a870..d9c89b4ce 100644 --- a/src/ir/count.h +++ b/src/ir/count.h @@ -22,7 +22,7 @@ namespace wasm { struct GetLocalCounter : public PostWalker<GetLocalCounter> { std::vector<Index> num; - GetLocalCounter() {} + GetLocalCounter() = default; GetLocalCounter(Function* func) { analyze(func, func->body); } |