[LLVMdev] IntervalMap warning

Renato Golin renato.golin at linaro.org
Tue Feb 25 02:14:22 PST 2014


Anyone seeing this, too?

include/llvm/ADT/IntervalMap.h:562:58:
warning: array subscript is above array bounds [-Warray-bounds]
const KeyT &stop(unsigned i) const { return this->first[i].second; }

It seems the [i] is out of bounds, but the code is a bit dense and I
couldn't find anything obviously wrong with it. It only shows when
you're building the unit tests and the test calls directly for
treeAvanceTo().

cheers,
--renato



More information about the llvm-dev mailing list