diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-23 23:04:10 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-23 23:04:10 +0000 |
commit | 739d8283149d999f598a7514c6ec2b42598f51d3 (patch) | |
tree | e6d7b5a119af205d13f33998f73d3e8371014630 /lib/Sema/SemaCXXCast.cpp | |
parent | 96be6917e1c4ba1f4435a14c9e7c6c139571d086 (diff) |
Improve diagnostic location information when checking the initialization of a reference
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82666 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCXXCast.cpp')
-rw-r--r-- | lib/Sema/SemaCXXCast.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaCXXCast.cpp b/lib/Sema/SemaCXXCast.cpp index f0ae9a1330..d1a8b6dedf 100644 --- a/lib/Sema/SemaCXXCast.cpp +++ b/lib/Sema/SemaCXXCast.cpp @@ -787,6 +787,7 @@ TryStaticImplicitCast(Sema &Self, Expr *SrcExpr, QualType DestType, // get error messages. ImplicitConversionSequence ICS; bool failed = Self.CheckReferenceInit(SrcExpr, DestType, + OpRange.getBegin(), /*SuppressUserConversions=*/false, /*AllowExplicit=*/false, /*ForceRValue=*/false, |