[clang-tidy] Silence unused variable warning in Release builds. NFCI.

ExpandModularHeadersPPCallbacks.cpp:55:15: warning: unused variable 'FileEntry'
    for (auto FileEntry : FilesToRecord)
              ^
This commit is contained in:
Benjamin Kramer 2020-10-26 20:20:23 +01:00
parent d6ab0474c6
commit 26750a1264
1 changed files with 5 additions and 3 deletions

View File

@ -52,9 +52,11 @@ public:
/// Makes sure we have contents for all the files we were interested in. Ideally
/// `FilesToRecord` should be empty.
void checkAllFilesRecorded() {
for (auto FileEntry : FilesToRecord)
LLVM_DEBUG(llvm::dbgs() << "Did not record contents for input file: "
<< FileEntry->getName() << "\n");
LLVM_DEBUG({
for (auto FileEntry : FilesToRecord)
llvm::dbgs() << "Did not record contents for input file: "
<< FileEntry->getName() << "\n";
});
}
private: