Fix clang-tools-extra build after clang r235614.
llvm-svn: 235642
diff --git a/clang-tools-extra/modularize/Modularize.cpp b/clang-tools-extra/modularize/Modularize.cpp
index 61234e0..b88476e 100644
--- a/clang-tools-extra/modularize/Modularize.cpp
+++ b/clang-tools-extra/modularize/Modularize.cpp
@@ -644,7 +644,7 @@
for (Preprocessor::macro_iterator M = PP.macro_begin(),
MEnd = PP.macro_end();
M != MEnd; ++M) {
- Location Loc(SM, M->second->getLocation());
+ Location Loc(SM, M->second.getLatest()->getLocation());
if (!Loc)
continue;