diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-02-24 17:54:50 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-02-24 17:54:50 +0000 |
| commit | 869ad45f8f0e9019556463ff0fd9fab3d7127512 (patch) | |
| tree | 12ee87ed78312514cde60e894b5add95a6f67517 /clang/lib/Sema/SemaExprCXX.cpp | |
| parent | e721185799a59944f4ee3ff9cf367f51c296c70f (diff) | |
| download | bcm5719-llvm-869ad45f8f0e9019556463ff0fd9fab3d7127512.tar.gz bcm5719-llvm-869ad45f8f0e9019556463ff0fd9fab3d7127512.zip | |
Retain complete source-location information for C++
nested-name-specifiers throughout the parser, and provide a new class
(NestedNameSpecifierLoc) that contains a nested-name-specifier along
with its type-source information.
Right now, this information is completely useless, because we don't
actually store the source-location information anywhere in the
AST. Call this Step 1/N.
llvm-svn: 126391
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index c0e08c07206..81bdbc6eefa 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -107,7 +107,7 @@ ParsedType Sema::getDestructorName(SourceLocation TildeLoc, // Nothing left to do. } else if (LookAtPrefix && (Prefix = NNS->getPrefix())) { CXXScopeSpec PrefixSS; - PrefixSS.Adopt(Prefix, SS.getRange()); + PrefixSS.MakeTrivial(Context, Prefix, SS.getRange()); LookupCtx = computeDeclContext(PrefixSS, EnteringContext); isDependent = isDependentScopeSpecifier(PrefixSS); } else if (ObjectTypePtr) { |

