summaryrefslogtreecommitdiff
path: root/src/trans/codegen_c.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-10 20:17:25 +0800
committerJohn Hodge <tpg@mutabah.net>2016-12-10 20:17:25 +0800
commit5c7994fe17d98405a1d533b1d9ac0579767f6a90 (patch)
treef33e9432fad5df73b1a8f173f690a29ae24502d5 /src/trans/codegen_c.cpp
parentd5f638d90d7f8a65423ed6df15e4ac6cad6d9855 (diff)
downloadmrust-5c7994fe17d98405a1d533b1d9ac0579767f6a90.tar.gz
MIR Match Gen - Fix incorrect arms chosen
Diffstat (limited to 'src/trans/codegen_c.cpp')
-rw-r--r--src/trans/codegen_c.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trans/codegen_c.cpp b/src/trans/codegen_c.cpp
index 1a0ba042..e5a97f85 100644
--- a/src/trans/codegen_c.cpp
+++ b/src/trans/codegen_c.cpp
@@ -410,7 +410,7 @@ namespace {
emit_lvalue(e.dst);
m_of << " = ";
bool special = false;
- // If the inner value has type [T] or str, just assign.
+ // If the inner value has type [T] or str, create DST based on inner pointer and existing metadata
TU_IFLET(::MIR::LValue, ve.val, Deref, e,
::HIR::TypeRef tmp;
const auto& ty = mir_res.get_lvalue_type(tmp, ve.val); // NOTE: Checks the result of the deref