diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-23 05:30:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-23 05:30:27 +0000 |
commit | b5437d238752dc297e42410e98d38d5250fe0463 (patch) | |
tree | 696030a1604f8c0b1477de5a4cc82a4ca8933177 /lib/CodeGen/CGBlocks.cpp | |
parent | 2f73cc46039a54208eca4da89886af9ed479f273 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 27b60a01e9..a042c6a4ed 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/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()); |