File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
crates/cranelift/src/debug/transform Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 95
95
let addr = addr_tr. translate ( u) . unwrap_or ( write:: Address :: Constant ( 0 ) ) ;
96
96
write:: AttributeValue :: Address ( addr)
97
97
}
98
- AttributeValue :: Block ( d) => write:: AttributeValue :: Block ( d. to_slice ( ) ?. to_vec ( ) ) ,
98
+ AttributeValue :: Block ( d) => write:: AttributeValue :: Block ( d. to_slice ( ) ?. into_owned ( ) ) ,
99
99
AttributeValue :: Udata ( u) => write:: AttributeValue :: Udata ( u) ,
100
100
AttributeValue :: Data1 ( d) => write:: AttributeValue :: Data1 ( d) ,
101
101
AttributeValue :: Data2 ( d) => write:: AttributeValue :: Data2 ( d) ,
@@ -295,6 +295,7 @@ where
295
295
pending_di_refs. insert ( current_scope_id, attr. name ( ) , offset) ;
296
296
continue ;
297
297
}
298
+ AttributeValue :: String ( d) => write:: AttributeValue :: String ( d. to_slice ( ) ?. into_owned ( ) ) ,
298
299
a => bail ! ( "Unexpected attribute: {:?}" , a) ,
299
300
} ;
300
301
let current_scope = out_unit. get_mut ( current_scope_id) ;
You can’t perform that action at this time.
0 commit comments