summaryrefslogtreecommitdiff
path: root/src/mir/from_hir.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-04-25 13:56:11 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-04-25 13:56:11 +0800
commit967a76859749ecb602cd2c343e28888514f827bd (patch)
tree4efa0535a2658f2c21a627fbe1e38c2e2fcbea4b /src/mir/from_hir.cpp
parent7a1a685ef5e0d831f6762f1bc9171de66d933e32 (diff)
downloadmrust-967a76859749ecb602cd2c343e28888514f827bd.tar.gz
MIR - Reduce size of LValue::Static by putting the HIR::Path behind a pointer
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r--src/mir/from_hir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp
index a2d0c790..912b8c78 100644
--- a/src/mir/from_hir.cpp
+++ b/src/mir/from_hir.cpp
@@ -2195,7 +2195,7 @@ namespace {
m_builder.set_result( node.span(), mv$(tmp) );
),
(Static,
- m_builder.set_result( node.span(), ::MIR::LValue::make_Static(node.m_path.clone()) );
+ m_builder.set_result( node.span(), ::MIR::LValue::make_Static(box$(node.m_path.clone())) );
),
(StructConstant,
// TODO: Why is this still a PathValue?