浏览代码

[ExternalASTMerger] Fix the MSVC build

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299977 91177308-0d34-0410-b5e6-96231b3b80d8
Sean Callanan 8 年之前
父节点
当前提交
384745c493
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      lib/AST/ExternalASTMerger.cpp

+ 3 - 3
lib/AST/ExternalASTMerger.cpp

@@ -172,10 +172,10 @@ void ExternalASTMerger::FindExternalLexicalDecls(
   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);
           }
         }