Simplify.

llvm-svn: 135456
This commit is contained in:
Devang Patel 2011-07-19 00:52:18 +00:00
parent 8cb46bb51c
commit 206f5093e3
1 changed files with 2 additions and 6 deletions

View 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;