diff options
author | Adrian Prantl <aprantl@apple.com> | 2013-04-02 01:00:48 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2013-04-02 01:00:48 +0000 |
commit | 7959194fded7b2b1d37ead268d42c8ae6b10fe25 (patch) | |
tree | 9c314ee2897a17b7bc627a4c49b53774033cfae4 /lib/CodeGen/CGBlocks.cpp | |
parent | c63a460d78a7625ff38d2b3580f78030c44f07db (diff) |
un-break remaining gdb buildbot testcases.
Make sure we do not generate line info for debugging-related frame setup.
Follow-up to r178361 / rdar://problem/12767564
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178517 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index d702b856cd..374c824a20 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -1147,7 +1147,13 @@ CodeGenFunction::GenerateBlockFunction(GlobalDecl GD, "block.addr"); unsigned Align = getContext().getDeclAlign(&selfDecl).getQuantity(); Alloca->setAlignment(Align); + // Set the DebugLocation to empty, so the store is recognized as a + // frame setup instruction by llvm::DwarfDebug::beginFunction(). + llvm::DebugLoc Empty; + llvm::DebugLoc Loc = Builder.getCurrentDebugLocation(); + Builder.SetCurrentDebugLocation(Empty); Builder.CreateAlignedStore(BlockPointer, Alloca, Align); + Builder.SetCurrentDebugLocation(Loc); BlockPointerDbgLoc = Alloca; } |