summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2016-08-08 04:02:15 +0000
committerSerge Pavlov <sepavloff@gmail.com>2016-08-08 04:02:15 +0000
commitd931b9f20060ce3751614e889fa4629db13e9e66 (patch)
tree3282627d886c0e0376ef6a3079b4e0d3f0b9818c /clang/lib/Sema/SemaDecl.cpp
parent6af0a6bcfebd7eecf55f5451b4c2a9d2046737ec (diff)
downloadbcm5719-llvm-d931b9f20060ce3751614e889fa4629db13e9e66.tar.gz
bcm5719-llvm-d931b9f20060ce3751614e889fa4629db13e9e66.zip
Pass information in a record instead of stack. NFC
Functions of Sema that work with building of nested name specifiers have too many parameters (BuildCXXNestedNameSpecifier already expects 10 arguments). With this change the information about identifier and its context is packed into a structure, which is then passes to the semantic functions. llvm-svn: 277976
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index ea7a31dbc77..a18ef0c4cf3 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -781,8 +781,8 @@ Sema::ClassifyName(Scope *S, CXXScopeSpec &SS, IdentifierInfo *&Name,
ObjCMethodDecl *CurMethod = getCurMethodDecl();
if (NextToken.is(tok::coloncolon)) {
- BuildCXXNestedNameSpecifier(S, *Name, NameLoc, NextToken.getLocation(),
- QualType(), false, SS, nullptr, false);
+ NestedNameSpecInfo IdInfo(Name, NameLoc, NextToken.getLocation());
+ BuildCXXNestedNameSpecifier(S, IdInfo, false, SS, nullptr, false);
}
LookupResult Result(*this, Name, NameLoc, LookupOrdinaryName);
OpenPOWER on IntegriCloud