Fix crash on Windows with -j option

This commit is contained in:
chrchr 2022-06-23 12:34:20 +02:00
parent 650f4099d2
commit 6d90b5a010
1 changed files with 2 additions and 2 deletions

View File

@ -845,7 +845,7 @@ ValueFlow::Value evaluateLibraryFunction(const std::unordered_map<nonneg int, Va
const std::string& returnValue,
const Settings* settings)
{
static std::unordered_map<std::string,
thread_local static std::unordered_map<std::string,
std::function<ValueFlow::Value(const std::unordered_map<nonneg int, ValueFlow::Value>& arg)>>
functions = {};
if (functions.count(returnValue) == 0) {