summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/AST/ExternalASTMerger.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/ExternalASTMerger.cpp b/clang/lib/AST/ExternalASTMerger.cpp
index 1d144047bd1..e47ed346986 100644
--- a/clang/lib/AST/ExternalASTMerger.cpp
+++ b/clang/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);
}
}
OpenPOWER on IntegriCloud