From 3ca7944fe33f6422789372ddd82c94a0b0c1636c Mon Sep 17 00:00:00 2001 From: Matt Jaffee Date: Thu, 20 Sep 2018 12:37:28 -0500 Subject: [PATCH] remove unecessary lines confirmed that bounds checks are still avoided by go test -gcflags="-d=ssa/check_bce/debug=1" ./roaring.go:3387:8: Found IsSliceInBounds ./roaring.go:3388:8: Found IsSliceInBounds ./roaring.go:3436:21: Found IsSliceInBounds --- roaring/roaring.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/roaring/roaring.go b/roaring/roaring.go index 4a5eea5fc..6eaad740d 100644 --- a/roaring/roaring.go +++ b/roaring/roaring.go @@ -3387,8 +3387,6 @@ func popcountAndSlice(s, m []uint64) uint64 { a = s[:bitmapN] b = m[:bitmapN] ) - _ = a[bitmapN-1] - _ = b[bitmapN-1] cnt := uint64(0) for i := 0; i < bitmapN; i++ {