[cfe-commits] r140866 - /cfe/trunk/lib/CodeGen/CGBlocks.cpp

Eli Friedman eli.friedman at gmail.com
Fri Sep 30 11:19:17 PDT 2011


Author: efriedma
Date: Fri Sep 30 13:19:16 2011
New Revision: 140866

URL: http://llvm.org/viewvc/llvm-project?rev=140866&view=rev
Log:
Minor cleanup.


Modified:
    cfe/trunk/lib/CodeGen/CGBlocks.cpp

Modified: cfe/trunk/lib/CodeGen/CGBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.cpp?rev=140866&r1=140865&r2=140866&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBlocks.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBlocks.cpp Fri Sep 30 13:19:16 2011
@@ -617,10 +617,9 @@
       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);
     }
 





More information about the cfe-commits mailing list