Skip to content

Commit

Permalink
[hxb] skip whole IMP chunk if reading sig only
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed May 9, 2024
1 parent c116069 commit 06a3dc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/hxb/hxbReader.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,7 @@ class hxb_reader
let length = read_uleb128 ch in
for _ = 0 to length - 1 do
let path = self#read_path in
if read_all then ignore(api#resolve_module path)
ignore(api#resolve_module path)
done

method read_mtf =
Expand Down Expand Up @@ -1944,7 +1944,7 @@ class hxb_reader
current_module.m_types <- self#read_mtf;
api#add_module current_module;
| IMP ->
self#read_imports;
if read_all then self#read_imports;
| CLR ->
self#read_clr;
| ENR ->
Expand Down

0 comments on commit 06a3dc9

Please sign in to comment.