summaryrefslogtreecommitdiff
path: root/src/binary-reader-ir.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader-ir.cc')
-rw-r--r--src/binary-reader-ir.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary-reader-ir.cc b/src/binary-reader-ir.cc
index b90ed62c..9c9c5203 100644
--- a/src/binary-reader-ir.cc
+++ b/src/binary-reader-ir.cc
@@ -541,7 +541,7 @@ Result BinaryReaderIR::BeginFunctionBody(Index index) {
}
Result BinaryReaderIR::OnLocalDecl(Index decl_index, Index count, Type type) {
- current_func_->local_types.decls.emplace_back(type, count);
+ current_func_->local_types.AppendDecl(type, count);
return Result::Ok;
}