Add asserts to SmallVector so that calls to front() and back() only succeed
authorRichard Trieu <rtrieu@google.com>
Thu, 24 Jan 2013 04:29:24 +0000 (04:29 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 24 Jan 2013 04:29:24 +0000 (04:29 +0000)
commit3ac907def807ab50561e03b1deea6e46749d5645
tree02eb66aefe9b416627452eddd9607bf6470b3d07
parenta2d76bce1f9f3176b52c9aec4a3bb1faf13a75ed
Add asserts to SmallVector so that calls to front() and back() only succeed
if the vector is not empty.  This will ensure that calls to these functions
will reference elements in the vector.

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