1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/include/llvm/Bitcode
Teresa Johnson 6b92d64b27 Fix for llvm-dis/llvm-bcanalyzer overflows
Summary:
These tools failed for a very large bitcode file produced by LTO due to
64-bit values being assigned to 32-bit types. For the BitstreamReader.h
fix, the value initially fit into the 32-bit unsigned, but there was an
overflow when multiplying by 32 furter below to compute the bit offset.

No test case in the patch as this requires a huge bitcode file.

Reviewers: pcc, george.karpenkov

Subscribers: mehdi_amini, a.sidorin, llvm-commits

Differential Revision: https://reviews.llvm.org/D47731

llvm-svn: 333942
2018-06-04 19:20:02 +00:00
..
BitcodeReader.h [Bitcode] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC). 2017-09-07 23:28:24 +00:00
BitCodes.h Fixup some header includes from recent IntrusiveRefCntPtr cleanup. 2017-01-04 22:52:00 +00:00
BitcodeWriter.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
BitcodeWriterPass.h [Debugify] Don't apply DI before the bitcode writer pass 2018-06-04 00:11:49 +00:00
BitstreamReader.h Fix for llvm-dis/llvm-bcanalyzer overflows 2018-06-04 19:20:02 +00:00
BitstreamWriter.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
LLVMBitCodes.h [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00