diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-18 00:36:05 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-18 00:36:05 +0000 |
commit | 6bfde496ee8bc71e160c8a1a7a21064f29d6db26 (patch) | |
tree | f99df688778787b8c8e34c35d23ebcb9be81bb94 /clang/lib/Sema/SemaTemplate.cpp | |
parent | a15ce21135d0a78f5d0d9c49d2b6d6fbe38a43f4 (diff) | |
download | bcm5719-llvm-6bfde496ee8bc71e160c8a1a7a21064f29d6db26.tar.gz bcm5719-llvm-6bfde496ee8bc71e160c8a1a7a21064f29d6db26.zip |
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.
llvm-svn: 67140
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index fd1eaf0ace6..6277d9e5122 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/lib/Sema/SemaTemplate.cpp @@ -399,7 +399,7 @@ Sema::ActOnClassTemplate(Scope *S, unsigned TagSpec, TagKind TK, DeclContext *SemanticContext = CurContext; if (SS.isNotEmpty() && !SS.isInvalid()) { - SemanticContext = static_cast<DeclContext*>(SS.getScopeRep()); + SemanticContext = getScopeRepAsDeclContext(SS); // FIXME: need to match up several levels of template parameter // lists here. |