Fix a couple of unused variables in no-asserts

llvm-svn: 241144
This commit is contained in:
Justin Bogner 2015-07-01 05:41:50 +00:00
parent 453f7a1480
commit 2510ba3f6e
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,7 @@ void InclusionRewriter::FileChanged(SourceLocation Loc,
FileID Id = FullSourceLoc(Loc, SM).getFileID();
auto P = FileIncludes.insert(std::make_pair(
LastInclusionLocation.getRawEncoding(), IncludedFile(Id, NewFileType)));
(void)P;
assert(P.second && "Unexpected revisitation of the same include directive");
LastInclusionLocation = SourceLocation();
}
@ -184,6 +185,7 @@ void InclusionRewriter::InclusionDirective(SourceLocation HashLoc,
if (Imported) {
auto P = ModuleIncludes.insert(
std::make_pair(HashLoc.getRawEncoding(), Imported));
(void)P;
assert(P.second && "Unexpected revisitation of the same include directive");
} else
LastInclusionLocation = HashLoc;