@@ -270,24 +270,27 @@ impl<'a, 'tcx> FunctionDebugContext<'a, 'tcx> {
270
270
length : end as u64 ,
271
271
} ) ;
272
272
273
- let value_labels_ranges = context. build_value_labels_ranges ( isa) . unwrap ( ) ;
274
-
275
- for ( local, _local_decl) in self . mir . local_decls . iter_enumerated ( ) {
276
- let var_id = self . define_local ( format ! ( "{:?}" , local) , & self . mir . local_decls [ local] . ty ) ;
277
-
278
- let location = place_location (
279
- self ,
280
- context,
281
- & local_map,
282
- & value_labels_ranges,
283
- Place {
284
- base : PlaceBase :: Local ( local) ,
285
- projection : ty:: List :: empty ( ) ,
286
- } ,
287
- ) ;
273
+ // FIXME make it more reliable and implement scopes before re-enabling this.
274
+ if false {
275
+ let value_labels_ranges = context. build_value_labels_ranges ( isa) . unwrap ( ) ;
276
+
277
+ for ( local, _local_decl) in self . mir . local_decls . iter_enumerated ( ) {
278
+ let var_id = self . define_local ( format ! ( "{:?}" , local) , & self . mir . local_decls [ local] . ty ) ;
279
+
280
+ let location = place_location (
281
+ self ,
282
+ context,
283
+ & local_map,
284
+ & value_labels_ranges,
285
+ Place {
286
+ base : PlaceBase :: Local ( local) ,
287
+ projection : ty:: List :: empty ( ) ,
288
+ } ,
289
+ ) ;
288
290
289
- let var_entry = self . debug_context . dwarf . unit . get_mut ( var_id) ;
290
- var_entry. set ( gimli:: DW_AT_location , location) ;
291
+ let var_entry = self . debug_context . dwarf . unit . get_mut ( var_id) ;
292
+ var_entry. set ( gimli:: DW_AT_location , location) ;
293
+ }
291
294
}
292
295
293
296
// FIXME create locals for all entries in mir.var_debug_info
0 commit comments