@@ -1825,9 +1825,8 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> {
18251825 self . declare_func_local_var ( self . type_array ( self . type_i8 ( ) , size. bytes ( ) ) , align)
18261826 }
18271827
1828- fn scalable_alloca ( & mut self , elt : u64 , align : Align , element_ty : Ty < ' _ > ) -> Self :: Value {
1829- let _ = ( elt, align, element_ty) ;
1830- self . fatal ( "scalable alloca is not supported in SPIR-V backend" )
1828+ fn scalable_alloca ( & mut self , _elt : u64 , _align : Align , _element_ty : Ty < ' _ > ) -> Self :: Value {
1829+ bug ! ( "scalable alloca is not supported in SPIR-V backend" )
18311830 }
18321831
18331832 fn load ( & mut self , ty : Self :: Type , ptr : Self :: Value , _align : Align ) -> Self :: Value {
@@ -3062,15 +3061,15 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> {
30623061 _parent : Option < Self :: Value > ,
30633062 _args : & [ Self :: Value ] ,
30643063 ) -> Self :: Funclet {
3065- todo ! ( )
3064+ bug ! ( "Funclets are not supported" )
30663065 }
30673066
30683067 fn cleanup_ret ( & mut self , _funclet : & Self :: Funclet , _unwind : Option < Self :: BasicBlock > ) {
3069- todo ! ( )
3068+ bug ! ( "Funclets are not supported" )
30703069 }
30713070
30723071 fn catch_pad ( & mut self , _parent : Self :: Value , _args : & [ Self :: Value ] ) -> Self :: Funclet {
3073- todo ! ( )
3072+ bug ! ( "Funclets are not supported" )
30743073 }
30753074
30763075 fn catch_switch (
@@ -3079,7 +3078,7 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> {
30793078 _unwind : Option < Self :: BasicBlock > ,
30803079 _handlers : & [ Self :: BasicBlock ] ,
30813080 ) -> Self :: Value {
3082- todo ! ( )
3081+ bug ! ( "Funclets are not supported" )
30833082 }
30843083
30853084 fn get_funclet_cleanuppad ( & self , _funclet : & Self :: Funclet ) -> Self :: Value {
0 commit comments