From: Chris Lattner Date: Sat, 17 Jan 2009 03:49:48 +0000 (+0000) Subject: no need to check this: content cache is already 1-1 map with fileentries. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c263857e2c3e7dce30ad32bb93b4a428896adb4;p=clang no need to check this: content cache is already 1-1 map with fileentries. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62402 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/CacheTokens.cpp b/Driver/CacheTokens.cpp index 33986f8254..4693b20bac 100644 --- a/Driver/CacheTokens.cpp +++ b/Driver/CacheTokens.cpp @@ -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;