[llvm] r358377 - [DWARF] Delete redundant check in DWARFAddressRange::intersects
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 15 01:36:21 PDT 2019
Author: maskray
Date: Mon Apr 15 01:36:21 2019
New Revision: 358377
URL: http://llvm.org/viewvc/llvm-project?rev=358377&view=rev
Log:
[DWARF] Delete redundant check in DWARFAddressRange::intersects
Modified:
llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h
Modified: llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h?rev=358377&r1=358376&r2=358377&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h Mon Apr 15 01:36:21 2019
@@ -36,9 +36,6 @@ struct DWARFAddressRange {
/// Returns true if [LowPC, HighPC) intersects with [RHS.LowPC, RHS.HighPC).
bool intersects(const DWARFAddressRange &RHS) const {
assert(valid() && RHS.valid());
- // Empty ranges can't intersect.
- if (LowPC == HighPC || RHS.LowPC == RHS.HighPC)
- return false;
return LowPC < RHS.HighPC && RHS.LowPC < HighPC;
}
More information about the llvm-commits
mailing list