diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-04-25 13:56:11 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-04-25 13:56:11 +0800 |
commit | 967a76859749ecb602cd2c343e28888514f827bd (patch) | |
tree | 4efa0535a2658f2c21a627fbe1e38c2e2fcbea4b /src/mir/mir.cpp | |
parent | 7a1a685ef5e0d831f6762f1bc9171de66d933e32 (diff) | |
download | mrust-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.cpp | 4 |
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 |