From 4a2ce65dbf84df905d5269bc4f73ee4bdfcd5aa0 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 18 Dec 2009 17:31:58 +0000 Subject: Try to de-bork DISABLE_SMART_POINTERS build llvm-svn: 91696 --- clang/lib/Sema/SemaStmt.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'clang/lib/Sema/SemaStmt.cpp') diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index e09243372eb..c2a3a3a8ca6 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/lib/Sema/SemaStmt.cpp @@ -1126,17 +1126,17 @@ Sema::ActOnReturnStmt(SourceLocation ReturnLoc, ExprArg rex) { // In C++ the return statement is handled via a copy initialization. // the C version of which boils down to CheckSingleAssignmentConstraints. - rex = PerformCopyInitialization( - InitializedEntity::InitializeResult(ReturnLoc, - FnRetTypeLoc), - SourceLocation(), - Owned(RetValExp)); - if (rex.isInvalid()) { + OwningExprResult Res = PerformCopyInitialization( + InitializedEntity::InitializeResult(ReturnLoc, + FnRetTypeLoc), + SourceLocation(), + Owned(RetValExp)); + if (Res.isInvalid()) { // FIXME: Cleanup temporaries here, anyway? return StmtError(); } - RetValExp = rex.takeAs(); + RetValExp = Res.takeAs(); if (RetValExp) CheckReturnStackAddr(RetValExp, FnRetType, ReturnLoc); } -- cgit v1.2.3