| Index: base/debug/asan_invalid_access.h
|
| diff --git a/base/debug/asan_invalid_access.h b/base/debug/asan_invalid_access.h
|
| index 65519878f12a707fe67d04826917d0cdf613fcd5..bc9390e53d607528b976ee13c2e081c3bfe8fbd8 100644
|
| --- a/base/debug/asan_invalid_access.h
|
| +++ b/base/debug/asan_invalid_access.h
|
| @@ -29,7 +29,7 @@ BASE_EXPORT NOINLINE void AsanHeapUseAfterFree();
|
|
|
| // The "corrupt-block" and "corrupt-heap" classes of bugs is specific to
|
| // SyzyASan.
|
| -#if defined(SYZYASAN)
|
| +#if defined(SYZYASAN) && defined(COMPILER_MSVC)
|
|
|
| // Corrupts a memory block and makes sure that the corruption gets detected when
|
| // we try to free this block.
|
| @@ -39,7 +39,7 @@ BASE_EXPORT NOINLINE void AsanCorruptHeapBlock();
|
| // crash occur.
|
| BASE_EXPORT NOINLINE void AsanCorruptHeap();
|
|
|
| -#endif // SYZYASAN
|
| +#endif // SYZYASAN && COMPILER_MSVC
|
|
|
| } // namespace debug
|
| } // namespace base
|
|
|