If the bitcode reader input stream isn't a multiple of 4 bytes, it's more
authorDan Gohman <gohman@apple.com>
Fri, 2 Apr 2010 00:03:51 +0000 (00:03 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 2 Apr 2010 00:03:51 +0000 (00:03 +0000)
commita4ae3a100d83a716dff81be7af7db5eb354517dc
tree260bb0c2ecd723b30ff2080f6c82b28a999dcbc8
parent7272b9200989be868f784210fb27f1935cc38036
If the bitcode reader input stream isn't a multiple of 4 bytes, it's more
likely not a bitcode file at all, rather than being a bitcode file which
is truncated. Check for this case and issue a more relevant error message.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100156 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp