summaryrefslogtreecommitdiff
path: root/src/hir/deserialise.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-12-29 15:00:52 +0800
committerJohn Hodge <tpg@mutabah.net>2018-12-29 15:00:52 +0800
commit28a48cfe2fde578219de5e15268348897c73b0d7 (patch)
tree78f4762893e6f624ab42df726f9bc33ca3b07d85 /src/hir/deserialise.cpp
parente8401bfcea28bef9151aea9a8bd9b1c2789b5f79 (diff)
downloadmrust-28a48cfe2fde578219de5e15268348897c73b0d7.tar.gz
HIR - Add new struct reprs (mostly stubbed)
- Also cleared out some dead code in target.cpp
Diffstat (limited to 'src/hir/deserialise.cpp')
-rw-r--r--src/hir/deserialise.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir/deserialise.cpp b/src/hir/deserialise.cpp
index afce2fe4..9ce063b4 100644
--- a/src/hir/deserialise.cpp
+++ b/src/hir/deserialise.cpp
@@ -995,11 +995,12 @@
default:
throw "";
}
+ auto align = static_cast<unsigned>(m_in.read_u64c());
auto markings = deserialise_markings();
auto str_markings = deserialise_str_markings();
return ::HIR::Struct {
- mv$(params), repr, mv$(data), mv$(markings), mv$(str_markings)
+ mv$(params), repr, mv$(data), align, mv$(markings), mv$(str_markings)
};
}
::HIR::Trait HirDeserialiser::deserialise_trait()