llvm.org GIT mirror llvm / f59b8b0
[DWARF] Delete redundant check in DWARFAddressRange::intersects git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358377 91177308-0d34-0410-b5e6-96231b3b80d8 Fangrui Song 6 months ago
1 changed file(s) with 0 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3535 /// Returns true if [LowPC, HighPC) intersects with [RHS.LowPC, RHS.HighPC).
3636 bool intersects(const DWARFAddressRange &RHS) const {
3737 assert(valid() && RHS.valid());
38 // Empty ranges can't intersect.
39 if (LowPC == HighPC || RHS.LowPC == RHS.HighPC)
40 return false;
4138 return LowPC < RHS.HighPC && RHS.LowPC < HighPC;
4239 }
4340