summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index 452dca5e..02aa7e02 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -1315,9 +1315,9 @@ public:
//}
}
for( /*const*/ auto& mac : crate.m_root_module.macros() ) {
- //if( mac.data.export ) {
- macros.insert( ::std::make_pair( mac.name, mv$(mac.data) ) );
- //}
+ if( mac.data->m_exported ) {
+ macros.insert( ::std::make_pair( mac.name, mv$(mac.data) ) );
+ }
}
auto sp = Span();