summaryrefslogtreecommitdiff
path: root/src/hir/deserialise.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/deserialise.cpp')
-rw-r--r--src/hir/deserialise.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hir/deserialise.cpp b/src/hir/deserialise.cpp
index 0b11b4dd..e4fc6bc1 100644
--- a/src/hir/deserialise.cpp
+++ b/src/hir/deserialise.cpp
@@ -674,11 +674,12 @@ namespace {
TRACE_FUNCTION;
// HACK! If the read crate name is empty, replace it with the name we're loaded with
auto crate_name = m_in.read_string();
- if( crate_name == "" )
+ auto components = deserialise_vec< ::std::string>();
+ if( crate_name == "" && components.size() > 0)
crate_name = m_crate_name;
return ::HIR::SimplePath {
mv$(crate_name),
- deserialise_vec< ::std::string>()
+ mv$(components)
};
}
::HIR::PathParams HirDeserialiser::deserialise_pathparams()