Skip to content

Commit 201afc1

Browse files
committed
---
yaml --- r: 348582 b: refs/heads/master c: cca882b h: refs/heads/master
1 parent d1cbc14 commit 201afc1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-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: 1fe9aa60dd7447ee6f1c111249bfb722eb5b4d09
2+
refs/heads/master: cca882b73df2d1a12dbacff8939e81a03689494d
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/SILOptimizer/Mandatory/DiagnoseStaticExclusivity.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ class RecordedAccess {
7575
union {
7676
BeginAccessInst *Inst;
7777
struct {
78-
SILAccessKind ClosureAccessKind;
79-
SILLocation ClosureAccessLoc;
80-
};
78+
SILAccessKind AccessKind;
79+
SILLocation AccessLoc;
80+
} Closure;
8181
};
8282

8383
const IndexTrieNode *SubPath;
@@ -89,7 +89,7 @@ class RecordedAccess {
8989
RecordedAccess(SILAccessKind ClosureAccessKind,
9090
SILLocation ClosureAccessLoc, const IndexTrieNode *SubPath) :
9191
RecordKind(RecordedAccessKind::NoescapeClosureCapture),
92-
ClosureAccessKind(ClosureAccessKind), ClosureAccessLoc(ClosureAccessLoc),
92+
Closure({ClosureAccessKind, ClosureAccessLoc}),
9393
SubPath(SubPath) { }
9494

9595
RecordedAccessKind getRecordKind() const {
@@ -106,7 +106,7 @@ class RecordedAccess {
106106
case RecordedAccessKind::BeginInstruction:
107107
return Inst->getAccessKind();
108108
case RecordedAccessKind::NoescapeClosureCapture:
109-
return ClosureAccessKind;
109+
return Closure.AccessKind;
110110
};
111111
llvm_unreachable("unhandled kind");
112112
}
@@ -116,7 +116,7 @@ class RecordedAccess {
116116
case RecordedAccessKind::BeginInstruction:
117117
return Inst->getLoc();
118118
case RecordedAccessKind::NoescapeClosureCapture:
119-
return ClosureAccessLoc;
119+
return Closure.AccessLoc;
120120
};
121121
llvm_unreachable("unhandled kind");
122122
}

0 commit comments

Comments
 (0)