diff options
| author | Devang Patel <dpatel@apple.com> | 2011-07-19 00:52:18 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2011-07-19 00:52:18 +0000 |
| commit | 206f5093e30d7287bcc421f4138b59bc992365ac (patch) | |
| tree | a94a28eb22ad5047cc90eb6f896307e614b7fc8c /clang/lib | |
| parent | 8cb46bb51cc79196cd2712bd7b113155fa691aca (diff) | |
| download | bcm5719-llvm-206f5093e30d7287bcc421f4138b59bc992365ac.tar.gz bcm5719-llvm-206f5093e30d7287bcc421f4138b59bc992365ac.zip | |
Simplify.
llvm-svn: 135456
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 0008919ccc2..3c9b3eb78f4 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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; |

