Switch Sema::CreateOverloadedUnaryOp over to InitializationSequence.

llvm-svn: 91948
This commit is contained in:
Douglas Gregor 2009-12-23 00:02:00 +00:00
parent b242ce1af0
commit 8d48e9a26e
1 changed files with 8 additions and 3 deletions

View File

@ -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