summaryrefslogtreecommitdiff
path: root/src/mir/mir.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/mir.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/mir.cpp')
-rw-r--r--src/mir/mir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir/mir.cpp b/src/mir/mir.cpp
index ee6c1a6c..657e695d 100644
--- a/src/mir/mir.cpp
+++ b/src/mir/mir.cpp
@@ -104,7 +104,7 @@ namespace MIR {
os << "Local(" << e << ")";
),
(Static,
- os << "Static(" << e << ")";
+ os << "Static(" << *e << ")";
),
(Field,
os << "Field(" << e.field_index << ", " << *e.val << ")";
@@ -543,7 +543,7 @@ namespace MIR {
(Return, return LValue(e); ),
(Argument, return LValue(e); ),
(Local, return LValue(e); ),
- (Static, return LValue(e.clone()); ),
+ (Static, return LValue(box$(e->clone())); ),
(Field, return LValue::make_Field({
box$( e.val->clone() ),
e.field_index