summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/RawCommentList.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-06-21 21:02:45 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-06-21 21:02:45 +0000
commitfecc2e0245a8e08a28570f1fde836620f37d9265 (patch)
tree8fe7a77a75c1b0d44a9e90523e6fbe23370d3450 /clang/lib/AST/RawCommentList.cpp
parent765c312314536069dd52ef96144cb8d8d25e1eb1 (diff)
downloadbcm5719-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.cpp2
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;
}
OpenPOWER on IntegriCloud