summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-02-24 17:54:50 +0000
committerDouglas Gregor <dgregor@apple.com>2011-02-24 17:54:50 +0000
commit869ad45f8f0e9019556463ff0fd9fab3d7127512 (patch)
tree12ee87ed78312514cde60e894b5add95a6f67517 /clang/lib/Sema/SemaExprCXX.cpp
parente721185799a59944f4ee3ff9cf367f51c296c70f (diff)
downloadbcm5719-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.cpp2
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) {
OpenPOWER on IntegriCloud