diff options
Diffstat (limited to 'clang/tools/libclang/CXSourceLocation.cpp')
-rw-r--r-- | clang/tools/libclang/CXSourceLocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/libclang/CXSourceLocation.cpp b/clang/tools/libclang/CXSourceLocation.cpp index 71e425d1f7f..a33c9d4f269 100644 --- a/clang/tools/libclang/CXSourceLocation.cpp +++ b/clang/tools/libclang/CXSourceLocation.cpp @@ -217,7 +217,7 @@ int clang_Location_isFromMainFile(CXSourceLocation location) { const SourceManager &SM = *static_cast<const SourceManager*>(location.ptr_data[0]); - return SM.isFromMainFile(Loc); + return SM.isWrittenInMainFile(Loc); } void clang_getExpansionLocation(CXSourceLocation location, |