File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class PathRemapper {
39
39
// / Adds a mapping such that any paths starting with `FromPrefix` have that
40
40
// / portion replaced with `ToPrefix`.
41
41
void addMapping (StringRef FromPrefix, StringRef ToPrefix) {
42
- PathMappings.emplace_back (FromPrefix, ToPrefix);
42
+ PathMappings.emplace_back (FromPrefix. str () , ToPrefix. str () );
43
43
}
44
44
45
45
// / Returns a remapped `Path` if it starts with a prefix in the map; otherwise
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ std::vector<const Job *> ModuleDepGraph::jobsContaining(
178
178
void ModuleDepGraph::registerJob (const Job *job) {
179
179
// No need to create any nodes; that will happen when the swiftdeps file is
180
180
// read. Just record the correspondence.
181
- jobsBySwiftDeps.insert (std::make_pair (getSwiftDeps (job), job));
181
+ jobsBySwiftDeps.insert (std::make_pair (getSwiftDeps (job). str () , job));
182
182
}
183
183
184
184
std::vector<const Job *> ModuleDepGraph::getAllJobs () const {
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ class DetailedCommandBasedMessage : public CommandBasedMessage {
136
136
if (PrimaryOutputType != file_types::TY_Nothing) {
137
137
for (llvm::StringRef OutputFileName :
138
138
Cmd.getOutput ().getPrimaryOutputFilenames ()) {
139
- Outputs.push_back (OutputPair (PrimaryOutputType, OutputFileName));
139
+ Outputs.push_back (OutputPair (PrimaryOutputType, OutputFileName. str () ));
140
140
}
141
141
}
142
142
file_types::forAllTypes ([&](file_types::ID Ty) {
You can’t perform that action at this time.
0 commit comments