summaryrefslogtreecommitdiff
path: root/src/binary-reader-ir.cc
diff options
context:
space:
mode:
authorKeith Winstein <keithw@cs.stanford.edu>2022-11-04 14:15:58 -0700
committerGitHub <noreply@github.com>2022-11-04 21:15:58 +0000
commitd29a3485b0646912f8d73cfac6b289ba05ac64e5 (patch)
tree35620e9e6531f1eb43f5ba5bb7469eee4908454e /src/binary-reader-ir.cc
parent2e6d45078b6e5e9ab1f1117b3e1607da3addb7f4 (diff)
downloadwabt-d29a3485b0646912f8d73cfac6b289ba05ac64e5.tar.gz
wabt-d29a3485b0646912f8d73cfac6b289ba05ac64e5.tar.bz2
wabt-d29a3485b0646912f8d73cfac6b289ba05ac64e5.zip
BinaryReaderIR: fix mis-binding of tags with debug name (#2040)
Fixes #2039
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 3f64157d..e03453a2 100644
--- a/src/binary-reader-ir.cc
+++ b/src/binary-reader-ir.cc
@@ -1495,7 +1495,7 @@ Result BinaryReaderIR::SetTagName(Index index, std::string_view name) {
std::string dollar_name =
GetUniqueName(&module_->tag_bindings, MakeDollarName(name));
tag->name = dollar_name;
- module_->global_bindings.emplace(dollar_name, Binding(index));
+ module_->tag_bindings.emplace(dollar_name, Binding(index));
return Result::Ok;
}