File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/CodeGen/AsmPrinter Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3597,22 +3597,22 @@ void CodeViewDebug::emitInlinees(
3597
3597
const SmallSet<codeview::TypeIndex, 1 > &Inlinees) {
3598
3598
// Divide the list of inlinees into chunks such that each chunk fits within
3599
3599
// one record.
3600
- constexpr auto ChunkSize =
3600
+ constexpr size_t ChunkSize =
3601
3601
(MaxRecordLength - sizeof (SymbolKind) - sizeof (uint32_t )) /
3602
3602
sizeof (uint32_t );
3603
3603
3604
3604
SmallVector<TypeIndex> SortedInlinees{Inlinees.begin (), Inlinees.end ()};
3605
3605
llvm::sort (SortedInlinees);
3606
3606
3607
- uint64_t CurrentIndex = 0 ;
3607
+ size_t CurrentIndex = 0 ;
3608
3608
while (CurrentIndex < SortedInlinees.size ()) {
3609
3609
auto Symbol = beginSymbolRecord (SymbolKind::S_INLINEES);
3610
3610
auto CurrentChunkSize =
3611
3611
std::min (ChunkSize, SortedInlinees.size () - CurrentIndex);
3612
3612
OS.AddComment (" Count" );
3613
3613
OS.emitInt32 (CurrentChunkSize);
3614
3614
3615
- const uint64_t CurrentChunkEnd = CurrentIndex + CurrentChunkSize;
3615
+ const size_t CurrentChunkEnd = CurrentIndex + CurrentChunkSize;
3616
3616
for (; CurrentIndex < CurrentChunkEnd; ++CurrentIndex) {
3617
3617
OS.AddComment (" Inlinee" );
3618
3618
OS.emitInt32 (SortedInlinees[CurrentIndex].getIndex ());
You can’t perform that action at this time.
0 commit comments