]> granicus.if.org Git - clang/commitdiff
ASTWriter.cpp: Fix a warning. [-Wunused-variable]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 19 Oct 2012 01:53:57 +0000 (01:53 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 19 Oct 2012 01:53:57 +0000 (01:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166257 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTWriter.cpp

index 4e66a2fabbbb2f5b97c54f200591801bcdbce1fb..77b8cf93ec81b1c6f3d2aba4d279a68c9391963e 100644 (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())