mgrang added inline comments.
================ Comment at: tools/libclang/CIndex.cpp:1028 SourceLocation L_B = B->getLocStart(); - assert(L_A.isValid() && L_B.isValid()); - return SM.isBeforeInTranslationUnit(L_A, L_B); + return L_A != L_B ? + SM.isBeforeInTranslationUnit(L_A, L_B) : ---------------- Also removed the assert from here since isBeforeInTranslationUnit already has the same assert. Repository: rC Clang https://reviews.llvm.org/D40618 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits