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/SemaOverload.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/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 12eb58733b..4232d54f4b 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -1963,6 +1963,7 @@ Sema::TryCopyInitialization(Expr *From, QualType ToType, if (ToType->isReferenceType()) { ImplicitConversionSequence ICS; CheckReferenceInit(From, ToType, + /*FIXME:*/From->getLocStart(), SuppressUserConversions, /*AllowExplicit=*/false, ForceRValue, @@ -2000,6 +2001,7 @@ bool Sema::PerformCopyInitialization(Expr *&From, QualType ToType, if (ToType->isReferenceType()) return CheckReferenceInit(From, ToType, + /*FIXME:*/From->getLocStart(), /*SuppressUserConversions=*/false, /*AllowExplicit=*/false, /*ForceRValue=*/false); |