diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-17 03:49:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-17 03:49:48 +0000 |
commit | 5c263857e2c3e7dce30ad32bb93b4a428896adb4 (patch) | |
tree | 17abef337f8ec73a512a27099094839d8422b50d /Driver/CacheTokens.cpp | |
parent | c6fe32a91c7372caf09152ee31a24c4b5d24deed (diff) |
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
Diffstat (limited to 'Driver/CacheTokens.cpp')
-rw-r--r-- | Driver/CacheTokens.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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; |