Skip to content

Commit 0450748

Browse files
maleadtKristofferC
authored andcommitted
Don't have jl_svec statically verify the argcount with ASAN.
1 parent 71b5dba commit 0450748

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
@@ -291,7 +291,7 @@ jl_value_t *jl_permbox32(jl_datatype_t *t, int32_t x);
291291
jl_value_t *jl_permbox64(jl_datatype_t *t, int64_t x);
292292
jl_svec_t *jl_perm_symsvec(size_t n, ...);
293293

294-
#if !defined(__clang_analyzer__) // this sizeof(__VA_ARGS__) trick can't be computed until C11, but only the analyzer seems to care
294+
#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
295295
#ifdef __GNUC__
296296
#define jl_perm_symsvec(n, ...) \
297297
(jl_perm_symsvec)(__extension__({ \

0 commit comments

Comments
 (0)