r299977 - [ExternalASTMerger] Fix the MSVC build

Sean Callanan via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 11 12:50:38 PDT 2017


Author: spyffe
Date: Tue Apr 11 14:50:37 2017
New Revision: 299977

URL: http://llvm.org/viewvc/llvm-project?rev=299977&view=rev
Log:
[ExternalASTMerger] Fix the MSVC build

Modified:
    cfe/trunk/lib/AST/ExternalASTMerger.cpp

Modified: cfe/trunk/lib/AST/ExternalASTMerger.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExternalASTMerger.cpp?rev=299977&r1=299976&r2=299977&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExternalASTMerger.cpp (original)
+++ cfe/trunk/lib/AST/ExternalASTMerger.cpp Tue Apr 11 14:50:37 2017
@@ -172,10 +172,10 @@ void ExternalASTMerger::FindExternalLexi
   ForEachMatchingDC(
       DC, Importers, [DC, IsKindWeWant](const ImporterPair &IP,
                                         Source<const DeclContext *> SourceDC) {
-        for (Source<const Decl *> SourceDecl : SourceDC.get()->decls()) {
-          if (IsKindWeWant(SourceDecl.get()->getKind())) {
+        for (const Decl *SourceDecl : SourceDC.get()->decls()) {
+          if (IsKindWeWant(SourceDecl->getKind())) {
             Decl *ImportedDecl =
-                IP.Forward->Import(const_cast<Decl *>(SourceDecl.get()));
+                IP.Forward->Import(const_cast<Decl *>(SourceDecl));
             assert(ImportedDecl->getDeclContext() == DC);
           }
         }




More information about the cfe-commits mailing list