diff options
author | Frits van Bommel <fvbommel@gmail.com> | 2010-12-05 20:50:26 +0000 |
---|---|---|
committer | Frits van Bommel <fvbommel@gmail.com> | 2010-12-05 20:50:26 +0000 |
commit | a4805cf6efbcd405916cdd0eb4b6170231e906c7 (patch) | |
tree | 7f10020b63a6676f0387f7ed29f10a39c79c4b28 /lib/MC/ELFObjectWriter.cpp | |
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
Diffstat (limited to 'lib/MC/ELFObjectWriter.cpp')
0 files changed, 0 insertions, 0 deletions