summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-07-24 20:34:39 +0000
committerAdrian Prantl <aprantl@apple.com>2013-07-24 20:34:39 +0000
commit49a78563d207183bda27e5756464f7c6ae64e289 (patch)
tree7c2dc7f0aa954ddb139e4279a5cace400b2584d8 /clang/lib/CodeGen/CGBlocks.cpp
parentd801711efbb45201a0499d01644fab2822242390 (diff)
downloadbcm5719-llvm-49a78563d207183bda27e5756464f7c6ae64e289.tar.gz
bcm5719-llvm-49a78563d207183bda27e5756464f7c6ae64e289.zip
Debug Info: Fix an oversight of r186553. Ensure that the function prologue
of an artificial function gets an artificial location as well. llvm-svn: 187074
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index ec4af58fc37..f200ec96e77 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud