diff options
author | Devang Patel <dpatel@apple.com> | 2011-03-25 21:26:13 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-03-25 21:26:13 +0000 |
commit | 3f4cb252832cf14f72d66ed707316d3759c8a689 (patch) | |
tree | 062aedfc27a6ceebb6f399924ff9c7c892526080 /lib/CodeGen/CGBlocks.cpp | |
parent | af19ac4b39ea1a545bd279df38ac65144f84e4b2 (diff) |
Provide blockDecl's startLoc to startFunction. This fixes hidden bug exposed by recent code gen changes. This is tested by global-blocks-lines.exp in gdb testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 8351d36f25..20350c8e6a 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -914,7 +914,7 @@ CodeGenFunction::GenerateBlockFunction(GlobalDecl GD, // Begin generating the function. StartFunction(blockDecl, fnType->getResultType(), fn, fnInfo, args, - blockInfo.getBlockExpr()->getBody()->getLocEnd()); + blockInfo.getBlockExpr()->getBody()->getLocStart()); CurFuncDecl = outerFnDecl; // StartFunction sets this to blockDecl // Okay. Undo some of what StartFunction did. |