aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseExprCXX.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
commit9ddba32f25c0315cd3a6c7b63e0275b27cc1d973 (patch)
tree1ed103acd161d72be78ffbf3906c8b01d600e4f1 /lib/Parse/ParseExprCXX.cpp
parent2e4c34ac53d08633b9473df921db4c7e4c9cd577 (diff)
Tweak the CXXScopeSpec API a bit, so that we require the
nested-name-specifier and source range to be set at the same time. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseExprCXX.cpp')
-rw-r--r--lib/Parse/ParseExprCXX.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Parse/ParseExprCXX.cpp b/lib/Parse/ParseExprCXX.cpp
index e12f62fb29..ee87135601 100644
--- a/lib/Parse/ParseExprCXX.cpp
+++ b/lib/Parse/ParseExprCXX.cpp
@@ -65,8 +65,8 @@ bool Parser::ParseOptionalCXXScopeSpecifier(CXXScopeSpec &SS,
"Call sites of this function should be guarded by checking for C++");
if (Tok.is(tok::annot_cxxscope)) {
- SS.setScopeRep(static_cast<NestedNameSpecifier*>(Tok.getAnnotationValue()));
- SS.setRange(Tok.getAnnotationRange());
+ SS.Adopt(static_cast<NestedNameSpecifier*>(Tok.getAnnotationValue()),
+ Tok.getAnnotationRange());
ConsumeToken();
return false;
}