From: Argyrios Kyrtzidis Date: Mon, 10 Oct 2011 21:57:15 +0000 (+0000) Subject: [libclang] Do ConcurrencyCheck for clang_getLocation as well. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57165bea7cdbafdafe0e8e4c4b174f4abba29f7b;p=clang [libclang] Do ConcurrencyCheck for clang_getLocation as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141583 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index 4610ae34ba..f36ee924af 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -2710,6 +2710,7 @@ CXSourceLocation clang_getLocation(CXTranslationUnit tu, bool Logging = ::getenv("LIBCLANG_LOGGING"); ASTUnit *CXXUnit = static_cast(tu->TUData); + ASTUnit::ConcurrencyCheck Check(*CXXUnit); const FileEntry *File = static_cast(file); SourceLocation SLoc = CXXUnit->getLocation(File, line, column); if (SLoc.isInvalid()) {