summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-06-18 00:27:36 +0000
committerAdrian Prantl <aprantl@apple.com>2013-06-18 00:27:36 +0000
commitde5fde0b05a89e865ff0fb365f15e04b1eb52b8a (patch)
treea24fc5734219b32bfac922dfd50fd3a29c8cb214 /clang/lib/CodeGen/CGStmt.cpp
parenta62e38c89840f9dbe448b1a0dc66bdc274ab1506 (diff)
downloadbcm5719-llvm-de5fde0b05a89e865ff0fb365f15e04b1eb52b8a.tar.gz
bcm5719-llvm-de5fde0b05a89e865ff0fb365f15e04b1eb52b8a.zip
Remove an ugly hack that was meant to eliminate the breakpoint ambiguity
between a block assignment and the entry of the block function. In reality this wouldn't work anyway because blocks are predominantly created on-the-fly inside of an ObjC method invocation. The proper fix for the ambiguity is to use -gcolumn-info to differentiate the breakpoints. This is expected to break some block-related darwin-gdb tests. rdar://problem/14039866 llvm-svn: 184157
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index b33028b59db..54abbab2afd 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -34,10 +34,7 @@ using namespace CodeGen;
void CodeGenFunction::EmitStopPoint(const Stmt *S) {
if (CGDebugInfo *DI = getDebugInfo()) {
SourceLocation Loc;
- if (isa<DeclStmt>(S))
- Loc = S->getLocEnd();
- else
- Loc = S->getLocStart();
+ Loc = S->getLocStart();
DI->EmitLocation(Builder, Loc);
LastStopPoint = Loc;
OpenPOWER on IntegriCloud