summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-06-26 16:35:32 +0000
committerAnders Carlsson <andersca@mac.com>2010-06-26 16:35:32 +0000
commit04775f84131467718edbb7b3698b0067164c395f (patch)
tree6c099aad7c0d5d96fb4b7b9a4f28467cb721641b /clang/lib/CodeGen/CGStmt.cpp
parent709ef8e46c0b481925d02d76691b07264a8c8a06 (diff)
downloadbcm5719-llvm-04775f84131467718edbb7b3698b0067164c395f.tar.gz
bcm5719-llvm-04775f84131467718edbb7b3698b0067164c395f.zip
Change EmitReferenceBindingToExpr to take a decl instead of a boolean.
llvm-svn: 106949
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index efde3807111..22c154ad1e2 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud