From 11de9a966a34a7a50611c3179885fefe2c83e6b2 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 18 Jul 2011 22:18:04 +0000 Subject: Check column number also. llvm-svn: 135437 --- clang/lib/CodeGen/CGDebugInfo.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'clang/lib/CodeGen') 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; -- cgit v1.2.3