[cfe-commits] r102916 - /cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Douglas Gregor
dgregor at apple.com
Mon May 3 08:43:53 PDT 2010
Author: dgregor
Date: Mon May 3 10:43:53 2010
New Revision: 102916
URL: http://llvm.org/viewvc/llvm-project?rev=102916&view=rev
Log:
When creating the declaration reference for implicit copy-construction
of a base class, give it real source-location information. Fixes PR7017.
Modified:
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=102916&r1=102915&r2=102916&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Mon May 3 10:43:53 2010
@@ -1501,7 +1501,7 @@
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 =
More information about the cfe-commits
mailing list