File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,9 @@ JL_DLLEXPORT jl_genericmemory_t *jl_genericmemory_copy_slice(jl_genericmemory_t
283283 memcpy (jl_genericmemory_typetagdata (new_mem ), jl_genericmemory_typetagdata (mem ) + (size_t )data , len );
284284 }
285285 else if (layout -> first_ptr != -1 ) {
286+ if (data == NULL ) {
287+ assert (len * elsz / sizeof (void * ) == 0 ); // make static analyzer happy
288+ }
286289 memmove_refs ((_Atomic (void * )* )new_mem -> ptr , (_Atomic(void * )* )data , len * elsz / sizeof (void * ));
287290 }
288291 else if (data != NULL ) {
Original file line number Diff line number Diff line change @@ -1182,12 +1182,14 @@ static int subtype_tuple_varargs(
11821182 if (bxp1 ) {
11831183 if (bxp1 -> intvalued == 0 )
11841184 bxp1 -> intvalued = 1 ;
1185+ assert (bxp1 -> lb ); // make static analyzer happy
11851186 if (jl_is_long (bxp1 -> lb ))
11861187 xp1 = bxp1 -> lb ;
11871188 }
11881189 if (byp1 ) {
11891190 if (byp1 -> intvalued == 0 )
11901191 byp1 -> intvalued = 1 ;
1192+ assert (byp1 -> lb ); // make static analyzer happy
11911193 if (jl_is_long (byp1 -> lb ))
11921194 yp1 = byp1 -> lb ;
11931195 }
You can’t perform that action at this time.
0 commit comments