]> granicus.if.org Git - llvm/commit
Fix Modi and File count if there are more than 65535 modules/files.
authorRui Ueyama <ruiu@google.com>
Wed, 16 Nov 2016 00:38:33 +0000 (00:38 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 16 Nov 2016 00:38:33 +0000 (00:38 +0000)
commitd0211181aaf0bdc1748810ceb5d804836caee298
tree5afab37762cd93f76220aba014f704b87841faf5
parent883332301153f9950a940ce77005920ca90f01f9
Fix Modi and File count if there are more than 65535 modules/files.

These numbers are intended to be capped at 65535, but
`std::max<uint16_t>(UINT16_MAX, N)` always returns N for any N because
the expression is the same as `std::max((uint16_t)UINT16_MAX, (uint16_t)N)`.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287060 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/PDB/Raw/DbiStreamBuilder.cpp