File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,8 @@ macro _noub_meta()
337337 #= :inaccessiblememonly=# false ,
338338 #= :noub=# true ,
339339 #= :noub_if_noinbounds=# false ,
340- #= :consistent_overlay=# false ))
340+ #= :consistent_overlay=# false ,
341+ #= :nortcall=# false ))
341342end
342343# can be used in place of `@assume_effects :notaskstate` (supposed to be used for bootstrapping)
343344macro _notaskstate_meta ()
Original file line number Diff line number Diff line change @@ -491,6 +491,8 @@ jl_code_info_t *jl_new_code_info_from_ir(jl_expr_t *ir)
491491 if (consistent_overlay ) li -> purity .overrides .ipo_consistent_overlay = consistent_overlay ;
492492 int8_t nortcall = jl_unbox_bool (jl_exprarg (ma , 10 ));
493493 if (nortcall ) li -> purity .overrides .ipo_nortcall = nortcall ;
494+ } else {
495+ assert (jl_expr_nargs (ma ) == 0 );
494496 }
495497 }
496498 else
Original file line number Diff line number Diff line change 810810# @test !Core.Compiler.is_nothrow(effects)
811811# end
812812# end
813- #
813+
814+ @test Core. Compiler. is_noub (Base. infer_effects (Base. _growbeg!, (Vector{Int}, Int)))
815+ @test Core. Compiler. is_noub (Base. infer_effects (Base. _growbeg!, (Vector{Any}, Int)))
816+ @test Core. Compiler. is_noub (Base. infer_effects (Base. _growend!, (Vector{Int}, Int)))
817+ @test Core. Compiler. is_noub (Base. infer_effects (Base. _growend!, (Vector{Any}, Int)))
818+
814819# tuple indexing
815820# --------------
816821
You can’t perform that action at this time.
0 commit comments