Skip to content

Commit 1c43f5d

Browse files
Print memories
1 parent 9e5e92c commit 1c43f5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/passes/Print.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3940,9 +3940,9 @@ std::ostream& operator<<(std::ostream& o, wasm::ModuleHeapType pair) {
39403940
return o << "(unnamed)";
39413941
}
39423942

3943-
std::ostream& operator<<(std::ostream& o, wasm::Memory& memory) {
3943+
std::ostream& operator<<(std::ostream& o, const wasm::Memory& memory) {
39443944
wasm::PrintSExpression printer(o);
3945-
printer.visitMemory(&memory);
3945+
printer.visitMemory(const_cast<wasm::Memory*>(&memory));
39463946
return o;
39473947
}
39483948

src/wasm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2692,7 +2692,7 @@ std::ostream& operator<<(std::ostream& o, wasm::ModuleExpression pair);
26922692
std::ostream& operator<<(std::ostream& o, wasm::ShallowExpression expression);
26932693
std::ostream& operator<<(std::ostream& o, wasm::ModuleType pair);
26942694
std::ostream& operator<<(std::ostream& o, wasm::ModuleHeapType pair);
2695-
std::ostream& operator<<(std::ostream& o, wasm::Memory& memory);
2695+
std::ostream& operator<<(std::ostream& o, const wasm::Memory& memory);
26962696

26972697
} // namespace std
26982698

0 commit comments

Comments
 (0)