The scope representation can now be either a DeclContext pointer or a
Type pointer. This allows our nested-name-specifiers to retain more
information about the actual spelling (e.g., which typedef did the
user name, or what exact template arguments were used in the
template-id?). It will also allow us to have dependent
nested-name-specifiers that don't map to any DeclContext.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67140 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp
index 57683b3..d6c36d4 100644
--- a/lib/Sema/SemaLookup.cpp
+++ b/lib/Sema/SemaLookup.cpp
@@ -1039,7 +1039,7 @@
return LookupResult::CreateLookupResult(Context, 0);
if (SS->isSet())
- return LookupQualifiedName(static_cast<DeclContext *>(SS->getScopeRep()),
+ return LookupQualifiedName(getScopeRepAsDeclContext(*SS),
Name, NameKind, RedeclarationOnly);
}