From 9594b910f56430e7e34fc5cedeec8ca5c1b5207b Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 30 Oct 2016 22:16:57 +0800 Subject: AST - Inheret module path info in anon mods --- src/ast/ast.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ast/ast.cpp') diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp index a5085501..420ac250 100644 --- a/src/ast/ast.cpp +++ b/src/ast/ast.cpp @@ -271,6 +271,7 @@ ExternBlock ExternBlock::clone() const ::std::shared_ptr Module::add_anon() { auto rv = ::std::shared_ptr( new Module(m_my_path + FMT("#" << m_anon_modules.size())) ); DEBUG("New anon " << rv->m_my_path); + rv->m_file_info = m_file_info; m_anon_modules.push_back( rv ); -- cgit v1.2.3