From 4d9c4a9b2346f522d08b3bada0dee8308be430a1 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Sat, 3 Oct 2015 10:46:20 +0000 Subject: Replace double negation of !FileID.isInvalid() with FileID.isValid(). +couple more of double-negated !SourceLocation.isInvalid() unfixed in r249228. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249235 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Index/CommentToXML.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Index') diff --git a/lib/Index/CommentToXML.cpp b/lib/Index/CommentToXML.cpp index d5c225ecad..15f1696cbe 100644 --- a/lib/Index/CommentToXML.cpp +++ b/lib/Index/CommentToXML.cpp @@ -894,7 +894,7 @@ void CommentASTToXMLConverter::visitFullComment(const FullComment *C) { FileID FID = LocInfo.first; unsigned FileOffset = LocInfo.second; - if (!FID.isInvalid()) { + if (FID.isValid()) { if (const FileEntry *FE = SM.getFileEntryForID(FID)) { Result << " file=\""; appendToResultWithXMLEscaping(FE->getName()); -- cgit v1.2.1