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>(
682
682
args,
683
683
ty:: ClosureKind :: FnOnce ,
684
684
)
685
- . expect ( "failed to normalize and resolve closure during codegen" )
686
685
. polymorphize ( fx. tcx ) ;
687
686
let func_ref = fx. get_function_ref ( instance) ;
688
687
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>(
443
443
444
444
ret. write_cvalue ( fx, a) ;
445
445
}
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
+ }
446
452
sym:: breakpoint => {
447
453
intrinsic_args ! ( fx, args => ( ) ; intrinsic) ;
448
454
You can’t perform that action at this time.
0 commit comments