diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-17 00:48:04 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-17 00:48:04 +0000 |
commit | 0e4f40e1bbc4dce16bbb9870300a435419f1b3d5 (patch) | |
tree | 3b6a5b4e2d05d932f00d8be0df6cfd2f55b4f59b /lib/CodeGen/CGBlocks.cpp | |
parent | 67d8249924ef38a5375ff9c92cd21c1854d6abab (diff) |
Attributes on block functions were not being set.
- <rdar://problem/6800351> clang not producing correct large struct
return code for Blocks
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 7a8cd0d822..27b60a01e9 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -670,6 +670,8 @@ CodeGenFunction::GenerateBlockFunction(const BlockExpr *BExpr, Name, &CGM.getModule()); + CGM.SetInternalFunctionAttributes(BD, Fn, FI); + StartFunction(BD, ResultType, Fn, Args, BExpr->getBody()->getLocEnd()); CurFuncDecl = OuterFuncDecl; |