From deca50f11c930925101dffd287de21505101b0b0 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 19 Oct 2012 01:53:57 +0000 Subject: [PATCH] ASTWriter.cpp: Fix a warning. [-Wunused-variable] llvm-svn: 166257 --- clang/lib/Serialization/ASTWriter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index 4e66a2fabbbb..77b8cf93ec81 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -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())