summaryrefslogtreecommitdiff
path: root/src/binary-writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-writer.cc')
-rw-r--r--src/binary-writer.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/binary-writer.cc b/src/binary-writer.cc
index a1760023..aae2b4bf 100644
--- a/src/binary-writer.cc
+++ b/src/binary-writer.cc
@@ -747,6 +747,10 @@ void BinaryWriter::WriteExpr(const Func* func, const Expr* expr) {
WriteTableNumberWithReloc(table_index, "table index");
break;
}
+ case ExprType::CallRef:{
+ WriteOpcode(stream_, Opcode::CallRef);
+ break;
+ }
case ExprType::ReturnCallIndirect: {
Index sig_index =
module_->GetFuncTypeIndex(cast<ReturnCallIndirectExpr>(expr)->decl);