Skip to content

Commit 157ef7e

Browse files
authored
---
yaml --- r: 275325 b: refs/heads/master-next c: 95ba21d h: refs/heads/master i: 275323: adaaf9f
1 parent ed836d1 commit 157ef7e

34 files changed

+1125
-443
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 65b3164726f2e62dff31e90a5cb5e3fb67cc82bf
3-
refs/heads/master-next: d04c33547888207e5c06df4f1a2d36c8165fdc80
3+
refs/heads/master-next: 95ba21d38d7eb2204afa882d205bcf3771250371
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/docs/SIL.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4311,7 +4311,7 @@ open_existential_addr
43114311
// type P
43124312
// $*@opened P must be a unique archetype that refers to an opened
43134313
// existential type P.
4314-
// %1 will be of type $*P
4314+
// %1 will be of type $*@opened P
43154315

43164316
Obtains the address of the concrete value inside the existential
43174317
container referenced by ``%0``. The protocol conformances associated
@@ -4334,7 +4334,7 @@ open_existential_value
43344334
// type P
43354335
// $@opened P must be a unique archetype that refers to an opened
43364336
// existential type P.
4337-
// %1 will be of type $P
4337+
// %1 will be of type $@opened P
43384338

43394339
Loadable version of the above: Opens-up the existential
43404340
container associated with ``%0``. The protocol conformances associated

branches/master-next/lib/Frontend/ArgsToFrontendOutputsConverter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ SupplementaryOutputPathsComputer::computeOutputPathsForOneInput(
401401
ID emitModuleOption;
402402
std::string moduleExtension;
403403
std::string mainOutputIfUsableForModule;
404-
deriveModulePathParameters(emitModuleOption, moduleExtension,
404+
deriveModulePathParameters(outputFile, emitModuleOption, moduleExtension,
405405
mainOutputIfUsableForModule);
406406

407407
auto moduleOutputPath = determineSupplementaryOutputFilename(
@@ -458,7 +458,7 @@ SupplementaryOutputPathsComputer::determineSupplementaryOutputFilename(
458458
};
459459

460460
void SupplementaryOutputPathsComputer::deriveModulePathParameters(
461-
options::ID &emitOption, std::string &extension,
461+
StringRef mainOutputFile, options::ID &emitOption, std::string &extension,
462462
std::string &mainOutputIfUsable) const {
463463

464464
bool isSIB = RequestedAction == FrontendOptions::ActionType::EmitSIB ||
@@ -477,7 +477,7 @@ void SupplementaryOutputPathsComputer::deriveModulePathParameters(
477477
isSIB ? file_types::TY_SIB : file_types::TY_SwiftModuleFile);
478478

479479
mainOutputIfUsable =
480-
canUseMainOutputForModule && !OutputFiles.empty() ? OutputFiles[0] : "";
480+
canUseMainOutputForModule && !OutputFiles.empty() ? mainOutputFile : "";
481481
}
482482

483483
static SupplementaryOutputPaths

branches/master-next/lib/Frontend/ArgsToFrontendOutputsConverter.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ class SupplementaryOutputPathsComputer {
167167
file_types::ID type, StringRef mainOutputIfUsable,
168168
StringRef defaultSupplementaryOutputPathExcludingExtension) const;
169169

170-
void deriveModulePathParameters(options::ID &emitOption,
170+
void deriveModulePathParameters(StringRef mainOutputFile,
171+
options::ID &emitOption,
171172
std::string &extension,
172173
std::string &mainOutputIfUsable) const;
173174
};

0 commit comments

Comments
 (0)