diff options
Diffstat (limited to 'include/clang/AST/RawCommentList.h')
-rw-r--r-- | include/clang/AST/RawCommentList.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/RawCommentList.h b/include/clang/AST/RawCommentList.h index 666a3e6859..0f9b18b32b 100644 --- a/include/clang/AST/RawCommentList.h +++ b/include/clang/AST/RawCommentList.h @@ -129,9 +129,9 @@ class BeforeThanCompare<RawComment> { public: explicit BeforeThanCompare(const SourceManager &SM) : SM(SM) { } - bool operator()(const RawComment &LHS, const SourceRange &RHS) { + bool operator()(const RawComment &LHS, const RawComment &RHS) { return SM.isBeforeInTranslationUnit(LHS.getSourceRange().getBegin(), - RHS.getBegin()); + RHS.getSourceRange().getBegin()); } }; |