[clang-tools-extra] r235642 - Fix clang-tools-extra build after clang r235614.

Richard Smith richard-llvm at metafoo.co.uk
Thu Apr 23 13:38:48 PDT 2015


Author: rsmith
Date: Thu Apr 23 15:38:48 2015
New Revision: 235642

URL: http://llvm.org/viewvc/llvm-project?rev=235642&view=rev
Log:
Fix clang-tools-extra build after clang r235614.

Modified:
    clang-tools-extra/trunk/modularize/Modularize.cpp

Modified: clang-tools-extra/trunk/modularize/Modularize.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/modularize/Modularize.cpp?rev=235642&r1=235641&r2=235642&view=diff
==============================================================================
--- clang-tools-extra/trunk/modularize/Modularize.cpp (original)
+++ clang-tools-extra/trunk/modularize/Modularize.cpp Thu Apr 23 15:38:48 2015
@@ -644,7 +644,7 @@ public:
     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;
 





More information about the cfe-commits mailing list