Skip to content

Commit 2d8aad8

Browse files
Two more places
1 parent a7deb3b commit 2d8aad8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/ir/js-utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ inline bool hasPossibleJSPrototypeField(HeapType type) {
4545

4646
// Calls flowIn and flowOut on all types that may flow in from or out to JS.
4747
template<typename In, typename Out>
48-
void iterJSInterface(Module& wasm, In flowIn, Out flowOut) {
48+
void iterJSInterface(const Module& wasm, In flowIn, Out flowOut) {
4949
// @binaryen.js.called functions are called from JS. Their parameters flow
5050
// in from JS and their results flow back out.
5151
for (auto f : Intrinsics(wasm).getJSCalledFunctions()) {

src/passes/Unsubtyping.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,12 @@ struct TypeTree {
398398
struct Subtypes {
399399
TypeTree* parent;
400400
Index index;
401-
SubtypeIterator begin() { return {parent, {std::make_pair(index, 0u)}}; }
402-
SubtypeIterator end() { return {parent, {}}; }
401+
SubtypeIterator begin() {
402+
return {parent, {std::make_pair(index, 0u)}};
403+
}
404+
SubtypeIterator end() {
405+
return {parent, {}};
406+
}
403407
};
404408

405409
Subtypes subtypes(HeapType type) { return {this, getIndex(type)}; }
@@ -645,7 +649,7 @@ struct Unsubtyping : Pass, Noter<Unsubtyping> {
645649
}
646650
}
647651

648-
void analyzeJSInterface(Module& wasm) {
652+
void analyzeJSInterface(const Module& wasm) {
649653
if (!wasm.features.hasCustomDescriptors()) {
650654
return;
651655
}

0 commit comments

Comments
 (0)