summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-07-01 05:41:50 +0000
committerJustin Bogner <mail@justinbogner.com>2015-07-01 05:41:50 +0000
commit2510ba3f6e3153d94171bf7b0c6735fe644841cf (patch)
tree74b73d502bc9c0cc68cd5bc5198f0e49fccc6697 /clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
parent453f7a14800c1e589e25e311ec40a81acd9c4555 (diff)
downloadbcm5719-llvm-2510ba3f6e3153d94171bf7b0c6735fe644841cf.tar.gz
bcm5719-llvm-2510ba3f6e3153d94171bf7b0c6735fe644841cf.zip
Fix a couple of unused variables in no-asserts
llvm-svn: 241144
Diffstat (limited to 'clang/lib/Frontend/Rewrite/InclusionRewriter.cpp')
-rw-r--r--clang/lib/Frontend/Rewrite/InclusionRewriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp b/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
index 03cc844c390..08d6cf1f92c 100644
--- a/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
+++ b/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
@@ -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;
OpenPOWER on IntegriCloud