@@ -5114,8 +5114,7 @@ struct VarArgAMD64Helper : public VarArgHelperBase {
51145114
51155115 // Instrument va_start.
51165116 // Copy va_list shadow from the backup copy of the TLS contents.
5117- for (size_t i = 0 , n = VAStartInstrumentationList.size (); i < n; i++) {
5118- CallInst *OrigInst = VAStartInstrumentationList[i];
5117+ for (CallInst *OrigInst : VAStartInstrumentationList) {
51195118 NextNodeIRBuilder IRB (OrigInst);
51205119 Value *VAListTag = OrigInst->getArgOperand (0 );
51215120
@@ -5224,8 +5223,7 @@ struct VarArgMIPS64Helper : public VarArgHelperBase {
52245223
52255224 // Instrument va_start.
52265225 // Copy va_list shadow from the backup copy of the TLS contents.
5227- for (size_t i = 0 , n = VAStartInstrumentationList.size (); i < n; i++) {
5228- CallInst *OrigInst = VAStartInstrumentationList[i];
5226+ for (CallInst *OrigInst : VAStartInstrumentationList) {
52295227 NextNodeIRBuilder IRB (OrigInst);
52305228 Value *VAListTag = OrigInst->getArgOperand (0 );
52315229 Type *RegSaveAreaPtrTy = PointerType::getUnqual (*MS.C ); // i64*
@@ -5399,8 +5397,7 @@ struct VarArgAArch64Helper : public VarArgHelperBase {
53995397
54005398 // Instrument va_start, copy va_list shadow from the backup copy of
54015399 // the TLS contents.
5402- for (size_t i = 0 , n = VAStartInstrumentationList.size (); i < n; i++) {
5403- CallInst *OrigInst = VAStartInstrumentationList[i];
5400+ for (CallInst *OrigInst : VAStartInstrumentationList) {
54045401 NextNodeIRBuilder IRB (OrigInst);
54055402
54065403 Value *VAListTag = OrigInst->getArgOperand (0 );
@@ -5610,8 +5607,7 @@ struct VarArgPowerPC64Helper : public VarArgHelperBase {
56105607
56115608 // Instrument va_start.
56125609 // Copy va_list shadow from the backup copy of the TLS contents.
5613- for (size_t i = 0 , n = VAStartInstrumentationList.size (); i < n; i++) {
5614- CallInst *OrigInst = VAStartInstrumentationList[i];
5610+ for (CallInst *OrigInst : VAStartInstrumentationList) {
56155611 NextNodeIRBuilder IRB (OrigInst);
56165612 Value *VAListTag = OrigInst->getArgOperand (0 );
56175613 Type *RegSaveAreaPtrTy = PointerType::getUnqual (*MS.C ); // i64*
@@ -5907,9 +5903,7 @@ struct VarArgSystemZHelper : public VarArgHelperBase {
59075903
59085904 // Instrument va_start.
59095905 // Copy va_list shadow from the backup copy of the TLS contents.
5910- for (size_t VaStartNo = 0 , VaStartNum = VAStartInstrumentationList.size ();
5911- VaStartNo < VaStartNum; VaStartNo++) {
5912- CallInst *OrigInst = VAStartInstrumentationList[VaStartNo];
5906+ for (CallInst *OrigInst : VAStartInstrumentationList) {
59135907 NextNodeIRBuilder IRB (OrigInst);
59145908 Value *VAListTag = OrigInst->getArgOperand (0 );
59155909 copyRegSaveArea (IRB, VAListTag);
0 commit comments