diff options
author | Devang Patel <dpatel@apple.com> | 2011-07-18 22:18:04 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-07-18 22:18:04 +0000 |
commit | 478b94b9454361446a981851a00f2f92062d4b66 (patch) | |
tree | 70fa724ab4f505df0372612eab816b05b6f1a4be /lib/CodeGen | |
parent | 884744b65ec9d1669e145985bf1830e727c04952 (diff) |
Check column number also.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135437 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index c1687b38fe..0008919ccc 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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; |