diff options
author | Richard Trieu <rtrieu@google.com> | 2013-01-24 04:29:24 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2013-01-24 04:29:24 +0000 |
commit | 0ac7e6f293bc502b39005496d2160b0089d3fa46 (patch) | |
tree | c428db8b20cb732667d7d1c9e51599cee6c52f2f /lib/Transforms/InstCombine/InstCombineCasts.cpp | |
parent | 8453b3f66a3c3200ea828491ef5cf162db9ccfb2 (diff) |
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
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineCasts.cpp')
0 files changed, 0 insertions, 0 deletions