Skip to content

Commit 8ace18c

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition
2 parents facd2e0 + 2608726 commit 8ace18c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Driver/OutputFileMap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ bool OutputFileMap::parse(std::unique_ptr<llvm::MemoryBuffer> Buffer,
144144
return StringRef(PathStorage.data(), PathStorage.size());
145145
};
146146

147-
for (auto Pair : *Map) {
147+
for (auto &Pair : *Map) {
148148
llvm::yaml::Node *Key = Pair.getKey();
149149
llvm::yaml::Node *Value = Pair.getValue();
150150

@@ -165,7 +165,7 @@ bool OutputFileMap::parse(std::unique_ptr<llvm::MemoryBuffer> Buffer,
165165

166166
TypeToPathMap OutputMap;
167167

168-
for (auto OutputPair : *OutputMapNode) {
168+
for (auto &OutputPair : *OutputMapNode) {
169169
llvm::yaml::Node *Key = OutputPair.getKey();
170170
llvm::yaml::Node *Value = OutputPair.getValue();
171171

0 commit comments

Comments
 (0)