r241144 - Fix a couple of unused variables in no-asserts
Justin Bogner
mail at justinbogner.com
Tue Jun 30 22:41:50 PDT 2015
Author: bogner
Date: Wed Jul 1 00:41:50 2015
New Revision: 241144
URL: http://llvm.org/viewvc/llvm-project?rev=241144&view=rev
Log:
Fix a couple of unused variables in no-asserts
Modified:
cfe/trunk/lib/Frontend/Rewrite/InclusionRewriter.cpp
Modified: cfe/trunk/lib/Frontend/Rewrite/InclusionRewriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/Rewrite/InclusionRewriter.cpp?rev=241144&r1=241143&r2=241144&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/Rewrite/InclusionRewriter.cpp (original)
+++ cfe/trunk/lib/Frontend/Rewrite/InclusionRewriter.cpp Wed Jul 1 00:41:50 2015
@@ -150,6 +150,7 @@ void InclusionRewriter::FileChanged(Sour
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::InclusionDirecti
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;
More information about the cfe-commits
mailing list