diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-03 15:43:53 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-03 15:43:53 +0000 |
commit | 62b71f489ec9735cfaa379ee604d0e12dde78975 (patch) | |
tree | 3a6eb132b316cc604febbc7bddf29467540a24a4 | |
parent | ae374759fce6c74d5be29dfe058d4a727154115c (diff) |
When creating the declaration reference for implicit copy-construction
of a base class, give it real source-location information. Fixes PR7017.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102916 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaDeclCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index 0db0d9e389..58be7aecf0 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -1501,7 +1501,7 @@ BuildImplicitBaseInitializer(Sema &SemaRef, CXXConstructorDecl *Constructor, Expr *CopyCtorArg = DeclRefExpr::Create(SemaRef.Context, 0, SourceRange(), Param, - SourceLocation(), ParamType, 0); + Constructor->getLocation(), ParamType, 0); // Cast to the base class to avoid ambiguities. QualType ArgTy = |