File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -682,7 +682,6 @@ fn codegen_stmt<'tcx>(
682682 args,
683683 ty:: ClosureKind :: FnOnce ,
684684 )
685- . expect ( "failed to normalize and resolve closure during codegen" )
686685 . polymorphize ( fx. tcx ) ;
687686 let func_ref = fx. get_function_ref ( instance) ;
688687 let func_addr = fx. bcx . ins ( ) . func_addr ( fx. pointer_type , func_ref) ;
Original file line number Diff line number Diff line change @@ -443,6 +443,12 @@ fn codegen_regular_intrinsic_call<'tcx>(
443443
444444 ret. write_cvalue ( fx, a) ;
445445 }
446+ sym:: is_val_statically_known => {
447+ intrinsic_args ! ( fx, args => ( _a) ; intrinsic) ;
448+
449+ let res = fx. bcx . ins ( ) . iconst ( types:: I8 , 0 ) ;
450+ ret. write_cvalue ( fx, CValue :: by_val ( res, ret. layout ( ) ) ) ;
451+ }
446452 sym:: breakpoint => {
447453 intrinsic_args ! ( fx, args => ( ) ; intrinsic) ;
448454
You can’t perform that action at this time.
0 commit comments