@@ -1209,8 +1209,7 @@ void ModuleBitcodeWriter::writeTypeTable() {
12091209 TypeVals.push_back (TET->getNumTypeParameters ());
12101210 for (Type *InnerTy : TET->type_params ())
12111211 TypeVals.push_back (VE.getTypeID (InnerTy));
1212- for (unsigned IntParam : TET->int_params ())
1213- TypeVals.push_back (IntParam);
1212+ llvm::append_range (TypeVals, TET->int_params ());
12141213 break ;
12151214 }
12161215 case Type::TypedPointerTyID:
@@ -4303,10 +4302,8 @@ static void writeFunctionHeapProfileRecords(
43034302 }
43044303 for (auto Id : CI.StackIdIndices )
43054304 Record.push_back (GetStackIndex (Id));
4306- if (!PerModule) {
4307- for (auto V : CI.Clones )
4308- Record.push_back (V);
4309- }
4305+ if (!PerModule)
4306+ llvm::append_range (Record, CI.Clones );
43104307 Stream.EmitRecord (PerModule ? bitc::FS_PERMODULE_CALLSITE_INFO
43114308 : bitc::FS_COMBINED_CALLSITE_INFO,
43124309 Record, CallsiteAbbrev);
@@ -4326,10 +4323,8 @@ static void writeFunctionHeapProfileRecords(
43264323 assert (CallStackCount <= CallStackPos.size ());
43274324 Record.push_back (CallStackPos[CallStackCount++]);
43284325 }
4329- if (!PerModule) {
4330- for (auto V : AI.Versions )
4331- Record.push_back (V);
4332- }
4326+ if (!PerModule)
4327+ llvm::append_range (Record, AI.Versions );
43334328 assert (AI.ContextSizeInfos .empty () ||
43344329 AI.ContextSizeInfos .size () == AI.MIBs .size ());
43354330 // Optionally emit the context size information if it exists.
0 commit comments