summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-07-18 22:18:04 +0000
committerDevang Patel <dpatel@apple.com>2011-07-18 22:18:04 +0000
commit11de9a966a34a7a50611c3179885fefe2c83e6b2 (patch)
tree1585281edc6f2b61ceaffb7a212237a81c92692f /clang/lib/CodeGen
parentd84a9a12490d6025a2c5dfcfa357b81ea8e106bc (diff)
downloadbcm5719-llvm-11de9a966a34a7a50611c3179885fefe2c83e6b2.tar.gz
bcm5719-llvm-11de9a966a34a7a50611c3179885fefe2c83e6b2.zip
Check column number also.
llvm-svn: 135437
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index c1687b38fe5..0008919ccc2 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1740,9 +1740,11 @@ void CGDebugInfo::EmitStopPoint(CGBuilderTy &Builder) {
// Don't bother if things are the same as last time.
SourceManager &SM = CGM.getContext().getSourceManager();
if (CurLoc == PrevLoc
- || (SM.getInstantiationLineNumber(CurLoc) ==
- SM.getInstantiationLineNumber(PrevLoc)
- && SM.isFromSameFile(CurLoc, PrevLoc)))
+ || ((SM.getInstantiationLineNumber(CurLoc)
+ == SM.getInstantiationLineNumber(PrevLoc))
+ && (SM.getInstantiationColumnNumber(CurLoc)
+ == SM.getInstantiationColumnNumber(PrevLoc))
+ && SM.isFromSameFile(CurLoc, PrevLoc)))
// New Builder may not be in sync with CGDebugInfo.
if (!Builder.getCurrentDebugLocation().isUnknown())
return;
OpenPOWER on IntegriCloud