summaryrefslogtreecommitdiff
path: root/src/trans/codegen_c.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trans/codegen_c.cpp')
-rw-r--r--src/trans/codegen_c.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/trans/codegen_c.cpp b/src/trans/codegen_c.cpp
index 889565c4..b780d695 100644
--- a/src/trans/codegen_c.cpp
+++ b/src/trans/codegen_c.cpp
@@ -757,12 +757,10 @@ namespace {
m_of << " " << inner;
),
(Path,
- //if( m_mir_res ) {
- // if( const auto* ity = m_mir_res->is_type_owned_box(ty) ) {
- // emit_ctype_ptr(*ity, inner);
- // return ;
- // }
- //}
+ if( const auto* ity = m_resolve.is_type_owned_box(ty) ) {
+ emit_ctype_ptr(*ity, inner);
+ return ;
+ }
TU_MATCHA( (te.binding), (tpb),
(Struct,
m_of << "struct s_" << Trans_Mangle(te.path);