aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-07-19 00:52:18 +0000
committerDevang Patel <dpatel@apple.com>2011-07-19 00:52:18 +0000
commitcb2a07e33789df99d28c3b9cd0770b4e3a8f31b5 (patch)
tree2f3f2322bf52418b1932d6beb1aca9fc1b77f113 /lib/CodeGen/CGDebugInfo.cpp
parent2f5127e6e0dbd9fcead5d61576d4c40237a28927 (diff)
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 0008919ccc..3c9b3eb78f 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -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;