aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/PrecompiledPreamble.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2017-06-21 11:26:58 +0000
committerHaojian Wu <hokein@google.com>2017-06-21 11:26:58 +0000
commit53dd644c5d623baf622a10ebefd121365ee98fbe (patch)
tree69d2c720c52cbdbc8e4857767c6e4d5c66b9bcd8 /clang/lib/Frontend/PrecompiledPreamble.cpp
parent845ca8fba9f0db2ed8bed19de5c9c0dc0531a580 (diff)
downloadllvm-53dd644c5d623baf622a10ebefd121365ee98fbe.zip
llvm-53dd644c5d623baf622a10ebefd121365ee98fbe.tar.gz
llvm-53dd644c5d623baf622a10ebefd121365ee98fbe.tar.bz2
Fix unused-variable compilation error.
llvm-svn: 305898
Diffstat (limited to 'clang/lib/Frontend/PrecompiledPreamble.cpp')
-rw-r--r--clang/lib/Frontend/PrecompiledPreamble.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PrecompiledPreamble.cpp b/clang/lib/Frontend/PrecompiledPreamble.cpp
index 385e48a..15b24cb 100644
--- a/clang/lib/Frontend/PrecompiledPreamble.cpp
+++ b/clang/lib/Frontend/PrecompiledPreamble.cpp
@@ -73,12 +73,14 @@ TemporaryFiles::~TemporaryFiles() {
void TemporaryFiles::addFile(StringRef File) {
llvm::MutexGuard Guard(Mutex);
auto IsInserted = Files.insert(File).second;
+ (void)IsInserted;
assert(IsInserted && "File has already been added");
}
void TemporaryFiles::removeFile(StringRef File) {
llvm::MutexGuard Guard(Mutex);
auto WasPresent = Files.erase(File);
+ (void)WasPresent;
assert(WasPresent && "File was not tracked");
llvm::sys::fs::remove(File);
}