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 | 8d48e9a26e5e271c0ab1a7b1091c6f5f28b64bec (patch) | |
tree | 9b34541d5648f8c041b3c91d2ebf30e202fcd168 /clang/lib/Sema/SemaOverload.cpp | |
parent | b242ce1af071611a1aa4883d216ba6a2c97062f1 (diff) | |
download | bcm5719-llvm-8d48e9a26e5e271c0ab1a7b1091c6f5f28b64bec.tar.gz bcm5719-llvm-8d48e9a26e5e271c0ab1a7b1091c6f5f28b64bec.zip |
Switch Sema::CreateOverloadedUnaryOp over to InitializationSequence.
llvm-svn: 91948
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
-rw-r--r-- | clang/lib/Sema/SemaOverload.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp index 44eb184a36f..8b5a72de361 100644 --- a/clang/lib/Sema/SemaOverload.cpp +++ b/clang/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 |