Skip to content

Commit f8e91fa

Browse files
committed
---
yaml --- r: 348571 b: refs/heads/master c: b62b6fb h: refs/heads/master i: 348569: 450a2a9 348567: e904104
1 parent 39c1a23 commit f8e91fa

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 5ea68459528321747370ab866f853bde20225a58
2+
refs/heads/master: b62b6fbd91df8b2c70c39650d9fdfebfd27da806
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/IRGen/GenMeta.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,14 +1684,16 @@ namespace {
16841684
}
16851685

16861686
void addUnderlyingTypeAndConformances() {
1687-
auto sig = O->getOpaqueInterfaceGenericSignature()
1688-
? O->getOpaqueInterfaceGenericSignature()->getCanonicalSignature()
1689-
: CanGenericSignature();
1687+
auto sig = O->getOpaqueInterfaceGenericSignature();
16901688
auto underlyingType = Type(O->getUnderlyingInterfaceType())
16911689
.subst(*O->getUnderlyingTypeSubstitutions())
16921690
->getCanonicalType(sig);
1691+
1692+
auto contextSig = O->getGenericSignature()
1693+
? O->getGenericSignature()->getCanonicalSignature()
1694+
: CanGenericSignature();
16931695

1694-
B.addRelativeAddress(IGM.getTypeRef(underlyingType, sig,
1696+
B.addRelativeAddress(IGM.getTypeRef(underlyingType, contextSig,
16951697
MangledTypeRefRole::Metadata).first);
16961698

16971699
auto opaqueType = O->getDeclaredInterfaceType()
@@ -1705,7 +1707,7 @@ namespace {
17051707

17061708
auto witnessTableRef = IGM.emitWitnessTableRefString(
17071709
underlyingType, underlyingConformance,
1708-
O->getGenericSignature(),
1710+
contextSig,
17091711
/*setLowBit*/ false);
17101712
B.addRelativeAddress(witnessTableRef);
17111713
}

trunk/tools/swift-api-digester/swift-api-digester.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ static llvm::cl::opt<bool>
130130
Verbose("v", llvm::cl::desc("Verbose"),
131131
llvm::cl::cat(Category));
132132

133+
static llvm::cl::opt<bool>
134+
DebugMapping("debug-mapping", llvm::cl::desc("Dumping information for debug purposes"),
135+
llvm::cl::cat(Category));
136+
133137
static llvm::cl::opt<bool>
134138
Abi("abi", llvm::cl::desc("Dumping ABI interface"), llvm::cl::init(false),
135139
llvm::cl::cat(Category));
@@ -1090,7 +1094,7 @@ class PrunePass : public MatchedNodeListener, public SDKTreeDiffPass {
10901094
ProtocolReqWhitelist(std::move(prWhitelist)) {}
10911095

10921096
void foundMatch(NodePtr Left, NodePtr Right, NodeMatchReason Reason) override {
1093-
if (options::Verbose)
1097+
if (options::DebugMapping)
10941098
debugMatch(Left, Right, Reason, llvm::errs());
10951099
switch (Reason) {
10961100
case NodeMatchReason::Added:

0 commit comments

Comments
 (0)