summaryrefslogtreecommitdiff
path: root/lib/Edit
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-10-03 10:46:20 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-10-03 10:46:20 +0000
commit4d9c4a9b2346f522d08b3bada0dee8308be430a1 (patch)
treeb579ce28651fed751895d934fcd0bc9f84695bf8 /lib/Edit
parent6f9ac26e2fa7d29587e1009ed458a11e54ac40a2 (diff)
downloadclang-4d9c4a9b2346f522d08b3bada0dee8308be430a1.tar.gz
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
Diffstat (limited to 'lib/Edit')
-rw-r--r--lib/Edit/EditedSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Edit/EditedSource.cpp b/lib/Edit/EditedSource.cpp
index 54659f6e4e..5292a58a9c 100644
--- a/lib/Edit/EditedSource.cpp
+++ b/lib/Edit/EditedSource.cpp
@@ -364,7 +364,7 @@ static void adjustRemoval(const SourceManager &SM, const LangOptions &LangOpts,
static void applyRewrite(EditsReceiver &receiver,
StringRef text, FileOffset offs, unsigned len,
const SourceManager &SM, const LangOptions &LangOpts) {
- assert(!offs.getFID().isInvalid());
+ assert(offs.getFID().isValid());
SourceLocation Loc = SM.getLocForStartOfFile(offs.getFID());
Loc = Loc.getLocWithOffset(offs.getOffset());
assert(Loc.isFileID());