diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-12-23 00:02:00 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-12-23 00:02:00 +0000 |
commit | baecfed8b995ace7d6da56e897ee610b8d477828 (patch) | |
tree | a61dd02432f7f3ba5fff084d911ef07fda4a5ebf /lib/Sema/SemaOverload.cpp | |
parent | 5da0bb4c4249e50466fc927efb436620b81731ad (diff) |
Switch Sema::CreateOverloadedUnaryOp over to InitializationSequence.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 44eb184a36..8b5a72de36 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -5001,10 +5001,15 @@ Sema::OwningExprResult Sema::CreateOverloadedUnaryOp(SourceLocation OpLoc, return ExprError(); } else { // Convert the arguments. - if (PerformCopyInitialization(Input, - FnDecl->getParamDecl(0)->getType(), - AA_Passing)) + input = PerformCopyInitialization( + InitializedEntity::InitializeParameter( + FnDecl->getParamDecl(0)), + SourceLocation(), + move(input)); + if (input.isInvalid()) return ExprError(); + + Input = (Expr *)input.get(); } // Determine the result type |