]> granicus.if.org Git - clang/commitdiff
no need to check this: content cache is already 1-1 map with fileentries.
authorChris Lattner <sabre@nondot.org>
Sat, 17 Jan 2009 03:49:48 +0000 (03:49 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 17 Jan 2009 03:49:48 +0000 (03:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62402 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/CacheTokens.cpp

index 33986f8254983b81008a2bedb50c905b1d045c2f..4693b20bacbc9bf7f7c154e3fb7a5984fb041f8d 100644 (file)
@@ -480,8 +480,7 @@ void PTHWriter::GeneratePTH() {
     if (!P.isAbsolute())
       continue;
 
-    PCHMap::iterator PI = PM.find(FE); // Have we already processed this file?
-    if (PI != PM.end()) continue;
+    assert(!PM.count(FE) && "fileinfo's are not uniqued on FileEntry?");
     
     const llvm::MemoryBuffer *B = C.getBuffer();
     if (!B) continue;