diff --git a/unittests/ThunkLibs/abi.cpp b/unittests/ThunkLibs/abi.cpp index 7fae4daad..3977d3f16 100644 --- a/unittests/ThunkLibs/abi.cpp +++ b/unittests/ThunkLibs/abi.cpp @@ -136,7 +136,9 @@ public: const bool Success = Compiler.ExecuteAction(ScopedToolAction); +#if LLVM_VERSION_MAJOR < 23 files->clearStatCache(); +#endif return Success; } };