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 | 11de9a966a34a7a50611c3179885fefe2c83e6b2 (patch) | |
tree | 1585281edc6f2b61ceaffb7a212237a81c92692f /clang/lib/CodeGen | |
parent | d84a9a12490d6025a2c5dfcfa357b81ea8e106bc (diff) | |
download | bcm5719-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.cpp | 8 |
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; |