@@ -985,7 +985,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
985
985
986
986
fn cleanup_landing_pad ( & mut self , pers_fn : & ' ll Value ) -> ( & ' ll Value , & ' ll Value ) {
987
987
let ty = self . type_struct ( & [ self . type_i8p ( ) , self . type_i32 ( ) ] , false ) ;
988
- let landing_pad = self . landing_pad ( ty, pers_fn, 1 /* FIXME should this be 0? */ ) ;
988
+ let landing_pad = self . landing_pad ( ty, pers_fn, 0 ) ;
989
989
unsafe {
990
990
llvm:: LLVMSetCleanup ( landing_pad, llvm:: True ) ;
991
991
}
@@ -994,7 +994,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
994
994
995
995
fn filter_landing_pad ( & mut self , pers_fn : & ' ll Value ) -> ( & ' ll Value , & ' ll Value ) {
996
996
let ty = self . type_struct ( & [ self . type_i8p ( ) , self . type_i32 ( ) ] , false ) ;
997
- let landing_pad = self . landing_pad ( ty, pers_fn, 1 /* FIXME should this be 0? */ ) ;
997
+ let landing_pad = self . landing_pad ( ty, pers_fn, 1 ) ;
998
998
self . add_clause ( landing_pad, self . const_array ( self . type_i8p ( ) , & [ ] ) ) ;
999
999
( self . extract_value ( landing_pad, 0 ) , self . extract_value ( landing_pad, 1 ) )
1000
1000
}
0 commit comments