commit | 75f9dc9b05ed291d59363d341312301d21d586f4 | [log] [tgz] |
---|---|---|
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Mon Mar 28 20:39:41 2016 +0000 |
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Mon Mar 28 20:39:41 2016 +0000 |
tree | 7798021cd1df0f304f60d61da26637e36c281882 | |
parent | 3828f99ca52a278d5bb94a6688b0f172739dd840 [diff] |
Explicitly test BitstreamReader::setArtificialByteLimit, NFC Explicitly check that artificial byte limit is rounded correctly by exposing BitstreamReader::Size through a new accessor, getSizeIfKnown. The original code for rounding (from r264547) wasn't obviously correct, and even though r264623 cleaned it up (by calling llvm::alignTo) I think it's worth testing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264650 91177308-0d34-0410-b5e6-96231b3b80d8