[clang-doc] Bump BitcodeWriter max line number to 32U
authorJulie Hockett <juliehockett@google.com>
Fri, 23 Aug 2019 21:14:05 +0000 (21:14 +0000)
committerJulie Hockett <juliehockett@google.com>
Fri, 23 Aug 2019 21:14:05 +0000 (21:14 +0000)
PR43039 reports hitting the assert on a very large file, so bumping this
to allow for larger files.

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

llvm-svn: 369811

clang-tools-extra/clang-doc/BitcodeWriter.h

index 8865da3..7deda2e 100644 (file)
@@ -40,7 +40,7 @@ struct BitCodeConstants {
   static constexpr unsigned IntSize = 16U;
   static constexpr unsigned StringLengthSize = 16U;
   static constexpr unsigned FilenameLengthSize = 16U;
-  static constexpr unsigned LineNumberSize = 16U;
+  static constexpr unsigned LineNumberSize = 32U;
   static constexpr unsigned ReferenceTypeSize = 8U;
   static constexpr unsigned USRLengthSize = 6U;
   static constexpr unsigned USRBitLengthSize = 8U;