diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-12-23 17:40:29 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-12-23 17:40:29 +0000 |
commit | e1a5c17bffba76d20efa89d1d74e5f44159a67bd (patch) | |
tree | b76a00209a1f51ffa4da03395959c2fe8daf36f0 /lib/Sema/SemaOverload.cpp | |
parent | c5143c538783a2834cfdc3d29db0ff76e857818f (diff) |
Fix DISABLE_SMART_POINTERS build
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92008 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 8b5a72de36..d932f21f79 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -5001,14 +5001,15 @@ Sema::OwningExprResult Sema::CreateOverloadedUnaryOp(SourceLocation OpLoc, return ExprError(); } else { // Convert the arguments. - input = PerformCopyInitialization( - InitializedEntity::InitializeParameter( + OwningExprResult InputInit + = PerformCopyInitialization(InitializedEntity::InitializeParameter( FnDecl->getParamDecl(0)), - SourceLocation(), - move(input)); - if (input.isInvalid()) + SourceLocation(), + move(input)); + if (InputInit.isInvalid()) return ExprError(); + input = move(InputInit); Input = (Expr *)input.get(); } |