summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-23 05:30:27 +0000
committerChris Lattner <sabre@nondot.org>2009-04-23 05:30:27 +0000
commit28ec0cf86c637803b6780783d8e90935a7f07b56 (patch)
tree22b5c0af46705222b5e7128437a2bd6d163c966f /clang/lib/CodeGen/CGBlocks.cpp
parentf718110ae5ff14c350d2b716d0c59bd34b6ff6bc (diff)
downloadbcm5719-llvm-28ec0cf86c637803b6780783d8e90935a7f07b56.tar.gz
bcm5719-llvm-28ec0cf86c637803b6780783d8e90935a7f07b56.zip
the logic for computing __func__ and friends is really broken:
the type assigned by sema (and is visible with sizeof(__func__) for example) has nothing to do with what codegen ends up producing. We should eventually add a method on PredefinedExpr to handle this. In the meantime, just set up some framework and add some fixme's. llvm-svn: 69872
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index 27b60a01e9e..a042c6a4ed5 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -672,9 +672,9 @@ CodeGenFunction::GenerateBlockFunction(const BlockExpr *BExpr,
CGM.SetInternalFunctionAttributes(BD, Fn, FI);
- StartFunction(BD, ResultType, Fn, Args,
+ StartFunction(OuterFuncDecl, ResultType, Fn, Args,
BExpr->getBody()->getLocEnd());
- CurFuncDecl = OuterFuncDecl;
+ CurCodeDecl = BD;
EmitStmt(BExpr->getBody());
FinishFunction(cast<CompoundStmt>(BExpr->getBody())->getRBracLoc());
OpenPOWER on IntegriCloud