summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDecl.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/CGDecl.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/CGDecl.cpp')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index ee8fadadc53..0190cac0784 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -653,7 +653,7 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) {
Loc, SrcPtr, SizeVal, AlignVal, NotVolatile);
}
} else if (Ty->isReferenceType()) {
- RValue RV = EmitReferenceBindingToExpr(Init, /*IsInitializer=*/true);
+ RValue RV = EmitReferenceBindingToExpr(Init, &D);
EmitStoreOfScalar(RV.getScalarVal(), Loc, false, Ty);
} else if (!hasAggregateLLVMType(Init->getType())) {
llvm::Value *V = EmitScalarExpr(Init);
OpenPOWER on IntegriCloud