From 225bf773d19bb4e3a673a52bebc6892285cb8e23 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 30 Sep 2011 18:19:16 +0000 Subject: [PATCH] Minor cleanup. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140866 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGBlocks.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index e0edae9dfa..5cbaff908c 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -617,10 +617,9 @@ llvm::Value *CodeGenFunction::EmitBlockLiteral(const BlockExpr *blockExpr) { ImplicitCastExpr l2r(ImplicitCastExpr::OnStack, type, CK_LValueToRValue, declRef, VK_RValue); EmitExprAsInit(&l2r, &blockFieldPseudoVar, - LValue::MakeAddr(blockField, type, - getContext().getDeclAlign(variable) - .getQuantity(), - getContext()), + MakeAddrLValue(blockField, type, + getContext().getDeclAlign(variable) + .getQuantity()), /*captured by init*/ false); } -- 2.40.0