summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-23 07:18:56 +0000
committerChris Lattner <sabre@nondot.org>2009-04-23 07:18:56 +0000
commit324f80b12a21d98c813e8cb4af9c3535b1a02d67 (patch)
treeb93ae6f396f3b843373b71748a026a943065a873 /clang/lib/CodeGen/CGBlocks.cpp
parent4645707034aa609960dcf1be20adf3ef8b99e526 (diff)
downloadbcm5719-llvm-324f80b12a21d98c813e8cb4af9c3535b1a02d67.tar.gz
bcm5719-llvm-324f80b12a21d98c813e8cb4af9c3535b1a02d67.zip
fix a problem producing debug info with global blocks.
llvm-svn: 69875
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index a042c6a4ed5..8ab4a44f40b 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -672,8 +672,9 @@ CodeGenFunction::GenerateBlockFunction(const BlockExpr *BExpr,
CGM.SetInternalFunctionAttributes(BD, Fn, FI);
- StartFunction(OuterFuncDecl, ResultType, Fn, Args,
+ StartFunction(BD, ResultType, Fn, Args,
BExpr->getBody()->getLocEnd());
+ CurFuncDecl = OuterFuncDecl;
CurCodeDecl = BD;
EmitStmt(BExpr->getBody());
FinishFunction(cast<CompoundStmt>(BExpr->getBody())->getRBracLoc());
OpenPOWER on IntegriCloud