Skip to content

Commit 9511fb3

Browse files
committed
---
yaml --- r: 345910 b: refs/heads/master c: a686fca h: refs/heads/master
1 parent 016fd9e commit 9511fb3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
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: 233947124ebf764c11588b7aef9be337888b2ae3
2+
refs/heads/master: a686fca618fb78ab1001d4bb8d862679813876ac
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/Sema/CSGen.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,6 +3086,11 @@ namespace {
30863086
}
30873087

30883088
Type visitTapExpr(TapExpr *expr) {
3089+
DeclContext *varDC = expr->getVar()->getDeclContext();
3090+
assert(varDC == CS.DC || (varDC && isa<AbstractClosureExpr>(varDC) &&
3091+
cast<AbstractClosureExpr>(varDC)->hasSingleExpressionBody()) &&
3092+
"TapExpr var should be in the same DeclContext we're checking it in!");
3093+
30893094
auto locator = CS.getConstraintLocator(expr);
30903095
auto tv = CS.createTypeVariable(locator);
30913096

0 commit comments

Comments
 (0)