diff options
| author | Adrian Prantl <aprantl@apple.com> | 2013-07-24 20:34:39 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2013-07-24 20:34:39 +0000 |
| commit | b6cdc96e7679f0344a36395a87c249930fac8a9f (patch) | |
| tree | 7f5b589675e2fc3f02912676e214abe414196c53 /lib/CodeGen/CGBlocks.cpp | |
| parent | d60911af406f102bfa57585fb43f2d9164881717 (diff) | |
| download | clang-b6cdc96e7679f0344a36395a87c249930fac8a9f.tar.gz clang-b6cdc96e7679f0344a36395a87c249930fac8a9f.tar.bz2 clang-b6cdc96e7679f0344a36395a87c249930fac8a9f.tar.xz | |
Debug Info: Fix an oversight of r186553. Ensure that the function prologue
of an artificial function gets an artificial location as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
| -rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index ec4af58fc3..f200ec96e7 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -1313,9 +1313,10 @@ CodeGenFunction::GenerateCopyHelperFunction(const CGBlockInfo &blockInfo) { SC_Static, false, false); - StartFunction(FD, C.VoidTy, Fn, FI, args, SourceLocation()); - // Don't emit any line table entries for the body of this function. + // Create a scope with an artificial location for the body of this function. ArtificialLocation AL(*this, Builder); + StartFunction(FD, C.VoidTy, Fn, FI, args, SourceLocation()); + AL.Emit(); llvm::Type *structPtrTy = blockInfo.StructureType->getPointerTo(); @@ -1488,9 +1489,10 @@ CodeGenFunction::GenerateDestroyHelperFunction(const CGBlockInfo &blockInfo) { SourceLocation(), II, C.VoidTy, 0, SC_Static, false, false); - StartFunction(FD, C.VoidTy, Fn, FI, args, SourceLocation()); - // Don't emit any line table entries for the body of this function. + // Create a scope with an artificial location for the body of this function. ArtificialLocation AL(*this, Builder); + StartFunction(FD, C.VoidTy, Fn, FI, args, SourceLocation()); + AL.Emit(); llvm::Type *structPtrTy = blockInfo.StructureType->getPointerTo(); |
