diff options
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 075d013e5..c6fca0256 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -649,14 +649,7 @@ struct PrintSExpression : public Visitor<PrintSExpression> { } void visitMemory(Memory* curr) { // if memory wasn't imported, declare it - bool found = false; - for (auto& import : currModule->imports) { - if (import->kind == ExternalKind::Memory) { - found = true; - break; - } - } - if (!found) { + if (!curr->imported) { doIndent(o, indent); printMemoryHeader(curr); o << '\n'; |