Skip to content

Commit 3d64a3e

Browse files
committed
[libclang] Use equality operator in clang_File_isEqual
1 parent f0951dd commit 3d64a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/libclang/CIndex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5170,7 +5170,7 @@ int clang_File_isEqual(CXFile file1, CXFile file2) {
51705170

51715171
FileEntryRef FEnt1 = *cxfile::getFileEntryRef(file1);
51725172
FileEntryRef FEnt2 = *cxfile::getFileEntryRef(file2);
5173-
return FEnt1.getUniqueID() == FEnt2.getUniqueID();
5173+
return FEnt1 == FEnt2;
51745174
}
51755175

51765176
CXString clang_File_tryGetRealPathName(CXFile SFile) {

0 commit comments

Comments
 (0)