CIndex: Fix clang_equalLocations for change to ptr_data field.

llvm-svn: 94930
This commit is contained in:
Daniel Dunbar 2010-01-30 23:58:27 +00:00
parent 8fa74aa21d
commit 83a2354c8b
1 changed files with 3 additions and 1 deletions

View File

@ -1136,7 +1136,9 @@ CXSourceLocation clang_getNullLocation() {
}
unsigned clang_equalLocations(CXSourceLocation loc1, CXSourceLocation loc2) {
return loc1.ptr_data == loc2.ptr_data && loc1.int_data == loc2.int_data;
return (loc1.ptr_data[0] == loc2.ptr_data[0] &&
loc1.ptr_data[1] == loc2.ptr_data[1] &&
loc1.int_data == loc2.int_data);
}
CXSourceLocation clang_getLocation(CXTranslationUnit tu,