summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaOverload.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/SemaOverload.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/SemaOverload.cpp')
-rw-r--r--clang/lib/Sema/SemaOverload.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index 7d3de8dde08..60873cd969d 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/lib/Sema/SemaOverload.cpp
@@ -7594,7 +7594,8 @@ BuildRecoveryCallExpr(Sema &SemaRef, Scope *S, Expr *Fn,
CXXScopeSpec SS;
if (ULE->getQualifier())
- SS.Adopt(ULE->getQualifier(), ULE->getQualifierRange());
+ SS.MakeTrivial(SemaRef.Context,
+ ULE->getQualifier(), ULE->getQualifierRange());
TemplateArgumentListInfo TABuffer;
const TemplateArgumentListInfo *ExplicitTemplateArgs = 0;
OpenPOWER on IntegriCloud