@@ -375,8 +375,7 @@ impl<'tcx> FnAbiOfHelpers<'tcx> for Builder<'_, '_, 'tcx> {
375375impl < ' a , ' gcc , ' tcx > Deref for Builder < ' a , ' gcc , ' tcx > {
376376 type Target = CodegenCx < ' gcc , ' tcx > ;
377377
378- fn deref < ' b > ( & ' b self ) -> & ' a Self :: Target
379- {
378+ fn deref < ' b > ( & ' b self ) -> & ' a Self :: Target {
380379 self . cx
381380 }
382381}
@@ -1216,7 +1215,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
12161215 let value = self . current_func ( ) . new_local ( None , struct_type. as_type ( ) , "landing_pad" ) ;
12171216 let ptr = self . cx . context . new_cast ( None , ptr, field1_type) ;
12181217 self . block . add_assignment ( None , value. access_field ( None , field1) , ptr) ;
1219- self . block . add_assignment ( None , value. access_field ( None , field2) , zero) ; // TODO: set the proper value here (the type of exception?).
1218+ self . block . add_assignment ( None , value. access_field ( None , field2) , zero) ; // TODO(antoyo) : set the proper value here (the type of exception?).
12201219
12211220 value. to_rvalue ( )
12221221 }
@@ -1232,7 +1231,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
12321231
12331232 #[ cfg( feature="master" ) ]
12341233 fn resume ( & mut self , exn : RValue < ' gcc > ) {
1235- // TODO: check if this is normal that we need to dereference the value.
1234+ // TODO(antoyo) : check if this is normal that we need to dereference the value.
12361235 // NOTE: the type is wrong, so in order to get a pointer for parameter, cast it to a
12371236 // pointer of pointer that is later dereferenced.
12381237 let exn_type = exn. get_type ( ) . make_pointer ( ) ;
0 commit comments