[clang-tools-extra] r270202 - [find-all-symbols] fix failing unittest for Windows build bot.
Eric Liu via cfe-commits
cfe-commits at lists.llvm.org
Fri May 20 04:14:37 PDT 2016
Author: ioeric
Date: Fri May 20 06:14:36 2016
New Revision: 270202
URL: http://llvm.org/viewvc/llvm-project?rev=270202&view=rev
Log:
[find-all-symbols] fix failing unittest for Windows build bot.
Modified:
clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllMacros.cpp
Modified: clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllMacros.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllMacros.cpp?rev=270202&r1=270201&r2=270202&view=diff
==============================================================================
--- clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllMacros.cpp (original)
+++ clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllMacros.cpp Fri May 20 06:14:36 2016
@@ -29,9 +29,8 @@ void FindAllMacros::MacroDefined(const T
// 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;
}
More information about the cfe-commits
mailing list