Use size_type for operator[].
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 14 Nov 2014 07:02:38 +0000 (07:02 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 14 Nov 2014 07:02:38 +0000 (07:02 +0000)
commitc50a913f32b2d54714ea8fca0f9867e6bb8a875a
tree6e6b0220908877e883896fa85080a783cb3c0796
parentc37f8af5777fecfd848ca4755c854d736d755d40
Use size_type for operator[].

This matches std::vector and is more efficient as it avoids
truncations.

With this the text segment of opt goes from 19705442 bytes
to 19703930 bytes.

llvm-svn: 221973
llvm/include/llvm/ADT/SmallVector.h