[find-all-symbols] fix failing unittest for Windows build bot.

llvm-svn: 270202
This commit is contained in:
Eric Liu 2016-05-20 11:14:36 +00:00
parent 059e5fb44f
commit 6c9472c57f
1 changed files with 2 additions and 3 deletions

View File

@ -29,9 +29,8 @@ void FindAllMacros::MacroDefined(const Token &MacroNameTok,
// If Collector is not nullptr, check pragma remapping header.
if (Collector) {
auto HeaderMappingTable = Collector->getHeaderMappingTable();
auto Iter = HeaderMappingTable.find(FilePath);
if (Iter != HeaderMappingTable.end())
auto Iter = Collector->getHeaderMappingTable().find(FilePath);
if (Iter != Collector->getHeaderMappingTable().end())
FilePath = Iter->second;
}