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/AST/RawCommentList.cpp | |
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/AST/RawCommentList.cpp')
-rw-r--r-- | clang/lib/AST/RawCommentList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |