commit | 6aeb31b5f0cb1063b74b062bf453b111477ff808 | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Mon Oct 26 18:23:21 2015 +0000 |
committer | Peter Collingbourne <peter@pcc.me.uk> | Mon Oct 26 18:23:21 2015 +0000 |
tree | fd4371bce2c4d74c073421404d3a632677231479 | |
parent | 7da5357acaa0e90e6af1a5cbfa88e422d697631c [diff] |
BitstreamWriter: Fix integer overflow. We were previously overflowing a 32-bit multiply operation when emitting large (>512MB) bitcode files, resulting in corrupted bitcode. Fix by extending one of the operands to 64 bits. There are a few other 32-bit integer types in this code that seem like they also ought to be extended to 64 bits; this will be done separately. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251323 91177308-0d34-0410-b5e6-96231b3b80d8