]> granicus.if.org Git - clang/commit
Make static counters in ASTContext non-static.
authorAlexander Kornienko <alexfh@google.com>
Mon, 25 Feb 2019 16:08:46 +0000 (16:08 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 25 Feb 2019 16:08:46 +0000 (16:08 +0000)
commit46ee6e0f9aa23aac11b45d4631f19d6fa0753893
tree7f1a23d777cf8abd75c0a4df834038eeaf2730ea
parent0f4dd73beccaf152c64032786f5b8e0a1862a572
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354795 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
lib/AST/ASTContext.cpp
lib/Sema/SemaDeclCXX.cpp