Skip to content

Commit 59e129e

Browse files
committed
Call the correct load_module
1 parent 9dab836 commit 59e129e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,13 @@ class CommonVisitor : public AST::BaseVisitor<Derived> {
188188

189189
SymbolTable *tu_symtab = ASRUtils::get_tu_symtab(current_scope);
190190
std::string rl_path = get_runtime_library_dir();
191-
ASR::Module_t *m = ASRUtils::load_module(al, tu_symtab, module_name,
191+
bool ltypes;
192+
ASR::Module_t *m = load_module(al, tu_symtab, module_name,
192193
loc, true, rl_path,
194+
ltypes,
193195
[&](const std::string &msg, const Location &loc) { throw SemanticError(msg, loc); }
194196
);
197+
LFORTRAN_ASSERT(!ltypes)
195198

196199
ASR::symbol_t *t = m->m_symtab->resolve_symbol(remote_sym);
197200
if (!t) {

0 commit comments

Comments
 (0)