summaryrefslogtreecommitdiff
path: root/src/ir/branch-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/branch-utils.h')
-rw-r--r--src/ir/branch-utils.h4
1 files changed, 2 insertions, 2 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++;