Skip to content

Commit f30102e

Browse files
committed
Fix Ubuntu 16.04 master-next build
Two more pair of string conversion fixes. With this, I was able to build swift master-next on Ubuntu 16.04 (didn't try anything downstream of swift, and not sure if the tests pass).
1 parent f4fee7a commit f30102e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Driver/ParseableOutput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class DetailedCommandBasedMessage : public CommandBasedMessage {
141141
}
142142
file_types::forAllTypes([&](file_types::ID Ty) {
143143
for (auto Output : Cmd.getOutput().getAdditionalOutputsForType(Ty)) {
144-
Outputs.push_back(OutputPair(Ty, Output));
144+
Outputs.push_back(OutputPair(Ty, Output.str()));
145145
}
146146
});
147147
}

lib/Index/IndexRecord.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ emitDataForSwiftSerializedModule(ModuleDecl *module,
528528
indexStorePath.str(), &diags, outRecordFile);
529529
if (failed)
530530
return false;
531-
records.emplace_back(outRecordFile, moduleName.str());
531+
records.emplace_back(outRecordFile, moduleName.str().str());
532532
return true;
533533
});
534534
indexModule(module, groupIndexConsumer);

0 commit comments

Comments
 (0)