diff options
| author | Douglas Gregor <dgregor@apple.com> | 2012-07-31 22:15:04 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2012-07-31 22:15:04 +0000 |
| commit | f4cc61d525ac0d537b0d3c72f15dfbe501d919de (patch) | |
| tree | 7ebd009dddd6879043a20c62a25c2c3f7eaf42e6 /clang/lib/Sema | |
| parent | 2c64adf672fc0d6c859946017140143781b7b8ff (diff) | |
| download | bcm5719-llvm-f4cc61d525ac0d537b0d3c72f15dfbe501d919de.tar.gz bcm5719-llvm-f4cc61d525ac0d537b0d3c72f15dfbe501d919de.zip | |
When testing whether we can perform copy or move initialization, be
sure to supply an initialization location. Fixes <rdar://problem/11951661>.
llvm-svn: 161084
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index 0e5a02f3426..cab7661898b 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -6179,8 +6179,8 @@ Sema::CanPerformCopyInitialization(const InitializedEntity &Entity, Expr *InitE = Init.get(); assert(InitE && "No initialization expression"); - InitializationKind Kind = InitializationKind::CreateCopy(SourceLocation(), - SourceLocation()); + InitializationKind Kind + = InitializationKind::CreateCopy(InitE->getLocStart(), SourceLocation()); InitializationSequence Seq(*this, Entity, Kind, &InitE, 1); return !Seq.Failed(); } |

