diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-26 23:56:24 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-26 23:56:24 +0000 |
commit | 3507369940bfb269551bfa1fec812481f60e3552 (patch) | |
tree | d8e1877f69616116bfa635c531a08134fc48aa7e /lib/Sema/SemaCXXScopeSpec.cpp | |
parent | ab452ba8323d1985e08bade2bced588cddf2cc28 (diff) |
Simplify CXXScopeSpec a lot. No more weird SmallVector-like hacks here
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67800 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCXXScopeSpec.cpp')
-rw-r--r-- | lib/Sema/SemaCXXScopeSpec.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Sema/SemaCXXScopeSpec.cpp b/lib/Sema/SemaCXXScopeSpec.cpp index ca864a2a2e..8fb2811ce5 100644 --- a/lib/Sema/SemaCXXScopeSpec.cpp +++ b/lib/Sema/SemaCXXScopeSpec.cpp @@ -25,7 +25,7 @@ DeclContext *Sema::computeDeclContext(const CXXScopeSpec &SS) { return 0; NestedNameSpecifier *NNS - = static_cast<NestedNameSpecifier *>(SS.getCurrentScopeRep()); + = static_cast<NestedNameSpecifier *>(SS.getScopeRep()); if (NNS->isDependent()) return 0; @@ -57,7 +57,7 @@ bool Sema::isDependentScopeSpecifier(const CXXScopeSpec &SS) { return false; NestedNameSpecifier *NNS - = static_cast<NestedNameSpecifier *>(SS.getCurrentScopeRep()); + = static_cast<NestedNameSpecifier *>(SS.getScopeRep()); return NNS->isDependent(); } @@ -111,7 +111,7 @@ Sema::CXXScopeTy *Sema::ActOnCXXNestedNameSpecifier(Scope *S, SourceLocation CCLoc, IdentifierInfo &II) { NestedNameSpecifier *Prefix - = static_cast<NestedNameSpecifier *>(SS.getCurrentScopeRep()); + = static_cast<NestedNameSpecifier *>(SS.getScopeRep()); // If the prefix is already dependent, there is no name lookup to // perform. Just build the resulting nested-name-specifier. @@ -173,7 +173,7 @@ Sema::CXXScopeTy *Sema::ActOnCXXNestedNameSpecifier(Scope *S, SourceRange TypeRange, SourceLocation CCLoc) { NestedNameSpecifier *Prefix - = static_cast<NestedNameSpecifier *>(SS.getCurrentScopeRep()); + = static_cast<NestedNameSpecifier *>(SS.getScopeRep()); return NestedNameSpecifier::Create(Context, Prefix, /*FIXME:*/false, QualType::getFromOpaquePtr(Ty).getTypePtr()); } |