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)
commitdada992be7f08c35cc70b5aaf32469d4a86e0225
tree4308bf3bace5bb9b6505318597502c895dcc70c5
parent5d94c2a6ad45053e514f0d429e92eec7821cd66a
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221973 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/SmallVector.h