[cfe-commits] r91948 - /cfe/trunk/lib/Sema/SemaOverload.cpp
Douglas Gregor
dgregor at apple.com
Tue Dec 22 16:02:00 PST 2009
Author: dgregor
Date: Tue Dec 22 18:02:00 2009
New Revision: 91948
URL: http://llvm.org/viewvc/llvm-project?rev=91948&view=rev
Log:
Switch Sema::CreateOverloadedUnaryOp over to InitializationSequence.
Modified:
cfe/trunk/lib/Sema/SemaOverload.cpp
Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=91948&r1=91947&r2=91948&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Tue Dec 22 18:02:00 2009
@@ -5001,10 +5001,15 @@
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
More information about the cfe-commits
mailing list