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)
commit0ac7e6f293bc502b39005496d2160b0089d3fa46
treec428db8b20cb732667d7d1c9e51599cee6c52f2f
parent8453b3f66a3c3200ea828491ef5cf162db9ccfb2
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.

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