diff --git a/mfbt/tests/TestPoisonArea.cpp b/mfbt/tests/TestPoisonArea.cpp index 8eb87a1907b2..455744578be4 100644 --- a/mfbt/tests/TestPoisonArea.cpp +++ b/mfbt/tests/TestPoisonArea.cpp @@ -400,14 +400,14 @@ IsBadExecPtr(uintptr_t ptr) { BOOL ret = false; -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) __try { JumpTo(ptr); } __except (EXCEPTION_EXECUTE_HANDLER) { ret = true; } #else - printf("INFO | exec test not supported on MinGW build\n"); + printf("INFO | exec test not supported on MinGW or clang-cl builds\n"); // We do our best ret = IsBadReadPtr((const void*)ptr, 1); #endif