ASTWriter.cpp: Fix a warning. [-Wunused-variable]

llvm-svn: 166257
This commit is contained in:
NAKAMURA Takumi 2012-10-19 01:53:57 +00:00
parent 433cd221ec
commit deca50f11c
1 changed files with 1 additions and 2 deletions

View File

@ -1129,8 +1129,7 @@ void ASTWriter::WriteInputFiles(SourceManager &SourceMgr, StringRef isysroot) {
for (unsigned I = 1, N = SourceMgr.local_sloc_entry_size(); I != N; ++I) {
// Get this source location entry.
const SrcMgr::SLocEntry *SLoc = &SourceMgr.getLocalSLocEntry(I);
FileID FID = FileID::get(I);
assert(&SourceMgr.getSLocEntry(FID) == SLoc);
assert(&SourceMgr.getSLocEntry(FileID::get(I)) == SLoc);
// We only care about file entries that were not overridden.
if (!SLoc->isFile())