forked from OSchip/llvm-project
When creating the declaration reference for implicit copy-construction
of a base class, give it real source-location information. Fixes PR7017. llvm-svn: 102916
This commit is contained in:
parent
5cf8d67bc9
commit
ed088b7fe7
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue