diff options
author | Mike Stump <mrs@apple.com> | 2009-02-25 23:33:13 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-02-25 23:33:13 +0000 |
commit | 8a2b4b1c5b960710db95e9b296d9a600aee37c00 (patch) | |
tree | e191004fda640e34ac654762007bd8dadda3deef /lib/CodeGen/CodeGenFunction.cpp | |
parent | b293902c5cfa18365ffb0e00763849c9808a2ad1 (diff) |
CodeGen support for copied BlockDeclRefExprs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65487 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 879b85891d..5fb0b2babe 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -38,6 +38,7 @@ CodeGenFunction::CodeGenFunction(CodeGenModule &cgm) else BlockOffset = CGM.getTargetData() .getTypeStoreSizeInBits(CGM.getGenericExtendedBlockLiteralType()) / 8; + BlockAlign = getContext().getTypeAlign(getContext().VoidPtrTy) / 8; } ASTContext &CodeGenFunction::getContext() const { |