summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-02-24 00:49:34 +0000
committerDouglas Gregor <dgregor@apple.com>2011-02-24 00:49:34 +0000
commit2ab3fee3f392ee0802588e3b9b5714349d6ea2b9 (patch)
tree8726e4d6dbbe21146a9cf2c02738e27c4bb762d7 /clang/lib/Parse/ParseDecl.cpp
parent90c9972fb2c388ad319b63ee43d82c81aca07e20 (diff)
downloadbcm5719-llvm-2ab3fee3f392ee0802588e3b9b5714349d6ea2b9.tar.gz
bcm5719-llvm-2ab3fee3f392ee0802588e3b9b5714349d6ea2b9.zip
Tweak the CXXScopeSpec API a bit, so that we require the
nested-name-specifier and source range to be set at the same time. llvm-svn: 126347
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 60c3a4c262b..caf7226c4d7 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -956,8 +956,8 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS,
goto DoneWithDeclSpec;
CXXScopeSpec SS;
- SS.setScopeRep((NestedNameSpecifier*) Tok.getAnnotationValue());
- SS.setRange(Tok.getAnnotationRange());
+ SS.Adopt(static_cast<NestedNameSpecifier *>(Tok.getAnnotationValue()),
+ Tok.getAnnotationRange());
// We are looking for a qualified typename.
Token Next = NextToken();
OpenPOWER on IntegriCloud