diff options
author | Anders Carlsson <andersca@mac.com> | 2010-06-26 16:35:32 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-06-26 16:35:32 +0000 |
commit | 32f36baa6c8d491c374af622b4e3ac28d597453c (patch) | |
tree | 60c0e1792298d7de48907f2861315dfb24fce3ab /lib/CodeGen/CGStmt.cpp | |
parent | 715edf293698f40e600df65e18e48c70a29fc98c (diff) |
Change EmitReferenceBindingToExpr to take a decl instead of a boolean.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index efde380711..22c154ad1e 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -631,7 +631,7 @@ void CodeGenFunction::EmitReturnStmt(const ReturnStmt &S) { } else if (FnRetTy->isReferenceType()) { // If this function returns a reference, take the address of the expression // rather than the value. - RValue Result = EmitReferenceBindingToExpr(RV, false); + RValue Result = EmitReferenceBindingToExpr(RV, /*InitializedDecl=*/0); Builder.CreateStore(Result.getScalarVal(), ReturnValue); } else if (!hasAggregateLLVMType(RV->getType())) { Builder.CreateStore(EmitScalarExpr(RV), ReturnValue); |