]> granicus.if.org Git - clang/commitdiff
Simplify.
authorDevang Patel <dpatel@apple.com>
Tue, 19 Jul 2011 00:52:18 +0000 (00:52 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 19 Jul 2011 00:52:18 +0000 (00:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135456 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 0008919ccc29bf87bb242eb8ab2ffefb6c806113..3c9b3eb78f4382b2df1d79d1a4fadef2fec05761 100644 (file)
@@ -1739,12 +1739,8 @@ 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.getInstantiationColumnNumber(CurLoc) 
-              == SM.getInstantiationColumnNumber(PrevLoc))
-          && SM.isFromSameFile(CurLoc, PrevLoc)))
+  if (CurLoc == PrevLoc || 
+      SM.getInstantiationLoc(CurLoc) == SM.getInstantiationLoc(PrevLoc))
     // New Builder may not be in sync with CGDebugInfo.
     if (!Builder.getCurrentDebugLocation().isUnknown())
       return;