diff options
author | Ben Smith <binjimin@gmail.com> | 2017-08-26 20:48:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-26 20:48:01 -0700 |
commit | 7223c1dc10ef63b884381df030ab1af760cbac91 (patch) | |
tree | 470ae1a51a7b3fe20d61baee8eee9c8e4017fa9c /src/binary-reader-linker.cc | |
parent | b775de1e48b5b8064e758cbcd8020eb3df1f9e50 (diff) | |
download | wabt-7223c1dc10ef63b884381df030ab1af760cbac91.tar.gz wabt-7223c1dc10ef63b884381df030ab1af760cbac91.tar.bz2 wabt-7223c1dc10ef63b884381df030ab1af760cbac91.zip |
Clean up various structs in ir.h (#595)
* Nicer static constructors for Const (e.g. `Const::F32()`)
* Protect `type` member when used as discriminant in type hierarchy
(e.g. `Expr`, `ModuleField`, etc.)
* Remove pointer member fields where possible. Where not, use `std::unique_ptr` instead.
* Remove nearly all uses of unions (`Var` and `Const` still use them)
* Rename `make_unique` to `MakeUnique` so to not conflict with `std::make_unique` when found by ADL.
Diffstat (limited to 'src/binary-reader-linker.cc')
-rw-r--r-- | src/binary-reader-linker.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary-reader-linker.cc b/src/binary-reader-linker.cc index 065569db..05ccf438 100644 --- a/src/binary-reader-linker.cc +++ b/src/binary-reader-linker.cc @@ -220,7 +220,7 @@ Result BinaryReaderLinker::OnElemSegmentFunctionIndexCount(Index index, Result BinaryReaderLinker::OnMemory(Index index, const Limits* page_limits) { Section* sec = current_section_; - sec->data.memory_limits = *page_limits; + sec->data.initial = page_limits->initial; binary_->memory_page_count = page_limits->initial; return Result::Ok; } |