[libclang] Do ConcurrencyCheck for clang_getLocation as well.

llvm-svn: 141583
This commit is contained in:
Argyrios Kyrtzidis 2011-10-10 21:57:15 +00:00
parent ebf0136956
commit ffd530f2c0
1 changed files with 1 additions and 0 deletions

View File

@ -2710,6 +2710,7 @@ CXSourceLocation clang_getLocation(CXTranslationUnit tu,
bool Logging = ::getenv("LIBCLANG_LOGGING");
ASTUnit *CXXUnit = static_cast<ASTUnit *>(tu->TUData);
ASTUnit::ConcurrencyCheck Check(*CXXUnit);
const FileEntry *File = static_cast<const FileEntry *>(file);
SourceLocation SLoc = CXXUnit->getLocation(File, line, column);
if (SLoc.isInvalid()) {