From: Eli Friedman Date: Fri, 30 Sep 2011 18:19:16 +0000 (+0000) Subject: Minor cleanup. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=225bf773d19bb4e3a673a52bebc6892285cb8e23;p=clang Minor cleanup. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140866 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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); }