Loading...
mach_o/CompactUnwind.cpp dyld-1340 dyld-1286.10
--- dyld/dyld-1340/mach_o/CompactUnwind.cpp
+++ dyld/dyld-1286.10/mach_o/CompactUnwind.cpp
@@ -437,10 +437,7 @@
     }
     const uint32_t firstLevelIndex             = low;
     const uint32_t firstLevelFunctionOffset    = firstLevelTable[firstLevelIndex].functionOffset;
-    const uint32_t firstLevelEndFunctionOffset =
-        (firstLevelIndex+1) >= _unwindTable->indexCount
-        ? firstLevelFunctionOffset + 1
-        : firstLevelTable[firstLevelIndex+1].functionOffset;
+    const uint32_t firstLevelEndFunctionOffset = firstLevelTable[firstLevelIndex+1].functionOffset;
     const void*    secondLevelAddr             = (uint8_t*)_unwindTable + firstLevelTable[firstLevelIndex].secondLevelPagesSectionOffset;
 
     if ( targetFunctionOffset > firstLevelEndFunctionOffset )