Don't generate bogus line table entries for __copy_helper_block_ and
__destroy_helper_block_, but do generate scope information.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186553 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp
index 3d825d3..bd97b25 100644
--- a/lib/CodeGen/CGBlocks.cpp
+++ b/lib/CodeGen/CGBlocks.cpp
@@ -1314,6 +1314,8 @@
false,
false);
StartFunction(FD, C.VoidTy, Fn, FI, args, SourceLocation());
+ // Don't emit any line table entries for the body of this function.
+ BuiltinLocation BL(*this, Builder);
llvm::Type *structPtrTy = blockInfo.StructureType->getPointerTo();
@@ -1487,6 +1489,8 @@
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.
+ BuiltinLocation BL(*this, Builder);
llvm::Type *structPtrTy = blockInfo.StructureType->getPointerTo();