diff options
| author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-06-21 21:02:45 +0000 |
|---|---|---|
| committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-06-21 21:02:45 +0000 |
| commit | fecc2e0245a8e08a28570f1fde836620f37d9265 (patch) | |
| tree | 8fe7a77a75c1b0d44a9e90523e6fbe23370d3450 /clang/lib | |
| parent | 765c312314536069dd52ef96144cb8d8d25e1eb1 (diff) | |
| download | bcm5719-llvm-fecc2e0245a8e08a28570f1fde836620f37d9265.tar.gz bcm5719-llvm-fecc2e0245a8e08a28570f1fde836620f37d9265.zip | |
VC9 does not like heterogenous compare function objects.
llvm-svn: 158936
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/AST/RawCommentList.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 9f8578bafe3..23751a56f24 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -81,7 +81,7 @@ const RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { ArrayRef<RawComment>::iterator Comment = std::lower_bound(RawComments.begin(), RawComments.end(), - SourceRange(DeclLoc), + RawComment(SourceMgr, SourceRange(DeclLoc)), BeforeThanCompare<RawComment>(SourceMgr)); // Decompose the location for the declaration and find the beginning of the diff --git a/clang/lib/AST/RawCommentList.cpp b/clang/lib/AST/RawCommentList.cpp index 1baa9b87eb1..f32e628caa0 100644 --- a/clang/lib/AST/RawCommentList.cpp +++ b/clang/lib/AST/RawCommentList.cpp @@ -60,7 +60,7 @@ RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR, Range(SR), RawTextValid(false), IsAlmostTrailingComment(false), BeginLineValid(false), EndLineValid(false) { // Extract raw comment text, if possible. - if (getRawText(SourceMgr).empty()) { + if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) { Kind = CK_Invalid; return; } |

