commit | a4805cf6efbcd405916cdd0eb4b6170231e906c7 | [log] [tgz] |
---|---|---|
author | Frits van Bommel <fvbommel@gmail.com> | Sun Dec 05 20:50:26 2010 +0000 |
committer | Frits van Bommel <fvbommel@gmail.com> | Sun Dec 05 20:50:26 2010 +0000 |
tree | 7f10020b63a6676f0387f7ed29f10a39c79c4b28 | |
parent | 120188605fd1e3228c65daf2c5cd6c7a62d6a335 [diff] |
Fix PR 4170 by having ExtractValueInst::getIndexedType() reject out-of-bounds indexing. Also add asserts that the indices are valid in InsertValueInst::init(). ExtractValueInst already asserts when constructed with invalid indices. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120956 91177308-0d34-0410-b5e6-96231b3b80d8