We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5c1ec8 commit d42b752Copy full SHA for d42b752
swift/extractor/SwiftOutputRewrite.cpp
@@ -251,9 +251,9 @@ void storeRemappingForVFS(const SwiftExtractorConfiguration& config,
251
const std::unordered_map<std::string, std::string>& remapping) {
252
// Only create remapping for the .swiftmodule files
253
std::unordered_map<std::string, std::string> modules;
254
- for (auto& [oldPath, newPath] : remapping) {
+ for (const auto& [oldPath, newPath] : remapping) {
255
if (llvm::StringRef(oldPath).endswith(".swiftmodule")) {
256
- modules[oldPath] = newPath;
+ modules.emplace(oldPath, newPath);
257
}
258
259
0 commit comments