summaryrefslogtreecommitdiff
path: root/src/ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir.h')
-rw-r--r--src/ir.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ir.h b/src/ir.h
index 997cd738..eb014024 100644
--- a/src/ir.h
+++ b/src/ir.h
@@ -466,8 +466,9 @@ class LocalTypes {
const Decls& decls() const { return decls_; }
void AppendDecl(Type type, Index count) {
- assert(count > 0);
- decls_.emplace_back(type, count);
+ if (count != 0) {
+ decls_.emplace_back(type, count);
+ }
}
Index size() const;