summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-17 00:48:04 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-17 00:48:04 +0000
commitc3e7cff6d3cc890a4c1a8ddcb0a716c052141fc2 (patch)
treeb97d8a97300fcae264538a9c11101f64a16888ef /clang/lib/CodeGen/CGBlocks.cpp
parent09dbb0b5e0f28e940fd190fb13fc5b8e2f07dc5c (diff)
downloadbcm5719-llvm-c3e7cff6d3cc890a4c1a8ddcb0a716c052141fc2.tar.gz
bcm5719-llvm-c3e7cff6d3cc890a4c1a8ddcb0a716c052141fc2.zip
Attributes on block functions were not being set.
- <rdar://problem/6800351> clang not producing correct large struct return code for Blocks llvm-svn: 69337
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index 7a8cd0d822f..27b60a01e9e 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud