From 32f36baa6c8d491c374af622b4e3ac28d597453c Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sat, 26 Jun 2010 16:35:32 +0000 Subject: 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 --- lib/CodeGen/CGExpr.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CGExpr.cpp') diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index cfb5af724b..5e84ffc06d 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -168,8 +168,11 @@ struct SubobjectAdjustment { } }; -RValue CodeGenFunction::EmitReferenceBindingToExpr(const Expr* E, - bool IsInitializer) { +RValue +CodeGenFunction::EmitReferenceBindingToExpr(const Expr* E, + const NamedDecl *InitializedDecl) { + bool IsInitializer = InitializedDecl; + bool ShouldDestroyTemporaries = false; unsigned OldNumLiveTemporaries = 0; -- cgit v1.2.3