summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-03 15:43:53 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-03 15:43:53 +0000
commited088b7fe714230ea3a07ab504d16984a4741d0b (patch)
treef663c7a3970920099ee3907180d2675f4b62c278 /clang/lib/Sema
parent5cf8d67bc93050002c32d37e0d2fc8a3a500a7fa (diff)
downloadbcm5719-llvm-ed088b7fe714230ea3a07ab504d16984a4741d0b.tar.gz
bcm5719-llvm-ed088b7fe714230ea3a07ab504d16984a4741d0b.zip
When creating the declaration reference for implicit copy-construction
of a base class, give it real source-location information. Fixes PR7017. llvm-svn: 102916
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaDeclCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index 0db0d9e3896..58be7aecf08 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/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 =
OpenPOWER on IntegriCloud