forked from OSchip/llvm-project
[libclang] Do ConcurrencyCheck for clang_getLocation as well.
llvm-svn: 141583
This commit is contained in:
parent
ebf0136956
commit
ffd530f2c0
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue