Skip to content

Commit f39772a

Browse files
maleadtKristofferC
authored andcommitted
Don't have jl_svec statically verify the argcount with ASAN.
(cherry picked from commit 64b9da1)
1 parent 1596175 commit f39772a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/julia_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ jl_value_t *jl_permbox32(jl_datatype_t *t, int32_t x);
290290
jl_value_t *jl_permbox64(jl_datatype_t *t, int64_t x);
291291
jl_svec_t *jl_perm_symsvec(size_t n, ...);
292292

293-
#if !defined(__clang_analyzer__) // this sizeof(__VA_ARGS__) trick can't be computed until C11, but only the analyzer seems to care
293+
#if !defined(__clang_analyzer__) && !defined(JL_ASAN_ENABLED) // this sizeof(__VA_ARGS__) trick can't be computed until C11, but that only matters to Clang in some situations
294294
#ifdef __GNUC__
295295
#define jl_perm_symsvec(n, ...) \
296296
(jl_perm_symsvec)(__extension__({ \

0 commit comments

Comments
 (0)