@@ -529,7 +529,7 @@ struct Table {
529
529
530
530
SmallVector<std::string, 16 > getListOfIRFiles (void ) {
531
531
SmallVector<std::string, 16 > Files;
532
- for (auto Entry : Entries) {
532
+ for (auto & Entry : Entries) {
533
533
Files.push_back (Entry.IRFile );
534
534
}
535
535
return Files;
@@ -546,7 +546,7 @@ struct Table {
546
546
if (EC)
547
547
reportError (errorCodeToError (EC));
548
548
TableFile << " [Code|Properties|Symbols]\n " ;
549
- for (auto Entry : Entries) {
549
+ for (auto & Entry : Entries) {
550
550
TableFile << Entry.IRFile << " |" ;
551
551
TableFile << Entry.PropFile << " |" ;
552
552
TableFile << Entry.SymFile << " \n " ;
@@ -742,7 +742,7 @@ Expected<StringRef> linkDeviceInputFiles(SmallVectorImpl<StringRef> &InputFiles,
742
742
743
743
SmallVector<StringRef, 8 > CmdArgs;
744
744
CmdArgs.push_back (*LLVMLinkPath);
745
- for (auto File : InputFiles)
745
+ for (auto & File : InputFiles)
746
746
CmdArgs.push_back (File);
747
747
CmdArgs.push_back (" -o" );
748
748
CmdArgs.push_back (*OutFileOrErr);
@@ -979,7 +979,7 @@ void diagnosticHandler(const DiagnosticInfo &DI) {
979
979
std::vector<std::string> getTargetFeatures (ArrayRef<OffloadFile> InputFiles) {
980
980
SmallVector<StringRef> Features;
981
981
for (const OffloadFile &File : InputFiles) {
982
- for (auto Arg : llvm::split (File.getBinary ()->getString (" feature" ), " ," ))
982
+ for (auto & Arg : llvm::split (File.getBinary ()->getString (" feature" ), " ," ))
983
983
Features.emplace_back (Arg);
984
984
}
985
985
0 commit comments