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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index 8a611d33..d8e21496 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -335,7 +335,7 @@
::HIR::SimplePath LowerHIR_SimplePath(const ::AST::Path& path, bool allow_final_generic = false)
{
TU_IFLET(::AST::Path::Class, path.m_class, Absolute, e,
- ::HIR::SimplePath rv( path.crate() );
+ ::HIR::SimplePath rv( e.crate );
for( const auto& node : e.nodes )
{
if( node.args().size() > 0 )