HomePhabricator

Make static counters in ASTContext non-static.

Description

Make static counters in ASTContext non-static.

Summary:
Fixes a data race and makes it possible to run clang-based tools in
multithreaded environment with TSan.

Reviewers: ilya-biryukov, riccibruno

Reviewed By: riccibruno

Subscribers: riccibruno, jfb, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D58612

Details

Committed
alexfhFeb 25 2019, 8:08 AM
Reviewer
riccibruno
Differential Revision
D58612: Make the static counters in ASTContext non-static
Branches
Unknown
Tags
Unknown