summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-23 18:57:34 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-23 18:57:34 +0000
commit30a4f4c75755fb80e02c9595b05600d02d2d1d80 (patch)
tree79ae68c4b41a29bda6e292a1ee8eeb1d2f474a51 /clang/lib/Sema/SemaTemplate.cpp
parent6738a2e39e46f0151dcb204fc127f951426fddc2 (diff)
downloadbcm5719-llvm-30a4f4c75755fb80e02c9595b05600d02d2d1d80.tar.gz
bcm5719-llvm-30a4f4c75755fb80e02c9595b05600d02d2d1d80.zip
Provide the overloaded functions for UnresolvedLookupExpr and
UnresolvedMemberExpr in their constructors, rather than adding them after the fact. No functionality change. llvm-svn: 104468
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index ac77c11b951..ecac7a212a5 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -1637,8 +1637,8 @@ Sema::OwningExprResult Sema::BuildTemplateIdExpr(const CXXScopeSpec &SS,
= UnresolvedLookupExpr::Create(Context, Dependent, R.getNamingClass(),
Qualifier, QualifierRange,
R.getLookupName(), R.getNameLoc(),
- RequiresADL, TemplateArgs);
- ULE->addDecls(R.begin(), R.end());
+ RequiresADL, TemplateArgs,
+ R.begin(), R.end());
return Owned(ULE);
}
OpenPOWER on IntegriCloud