From a0544d6fdf44a9a28ab324478fcf463d9e37a116 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sat, 3 Dec 2011 04:14:32 +0000 Subject: Switch LValue so that it exposes alignment in CharUnits. (No functional change.) llvm-svn: 145753 --- clang/lib/CodeGen/CGBlocks.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/lib/CodeGen/CGBlocks.cpp') diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index e713492cc0a..8fc43442018 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -745,8 +745,7 @@ llvm::Value *CodeGenFunction::EmitBlockLiteral(const CGBlockInfo &blockInfo) { declRef, VK_RValue); EmitExprAsInit(&l2r, &blockFieldPseudoVar, MakeAddrLValue(blockField, type, - getContext().getDeclAlign(variable) - .getQuantity()), + getContext().getDeclAlign(variable)), /*captured by init*/ false); } -- cgit v1.2.3