Skip to content

Commit 19bd099

Browse files
committed
---
yaml --- r: 349394 b: refs/heads/master-next c: c02c001 h: refs/heads/master
1 parent 8ac4a29 commit 19bd099

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
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: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3-
refs/heads/master-next: d58a1d5c0d5fcc0710c42d23e5edc09abd626bc6
3+
refs/heads/master-next: c02c0017364c82109bbd8d3528fa14848eb13c1b
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/lib/IRGen/IRGenFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ class IRGenFunction {
663663
llvm::Value *LocalSelf = nullptr;
664664
/// If set, the dynamic Self type is assumed to be equivalent to this exact class.
665665
CanType LocalSelfType;
666-
bool LocalSelfIsExact;
666+
bool LocalSelfIsExact = false;
667667
LocalSelfKind SelfKind;
668668
};
669669

branches/master-next/lib/Parse/SyntaxParsingContext.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,13 @@ ParsedRawSyntaxNode SyntaxParsingContext::finalizeSourceFile() {
258258
Parts = Parts.drop_back();
259259

260260
for (auto RawNode : Parts) {
261-
if (RawNode.getKind() != SyntaxKind::CodeBlockItem)
261+
if (RawNode.getKind() != SyntaxKind::CodeBlockItem) {
262262
// FIXME: Skip toplevel garbage nodes for now. we shouldn't emit them in
263263
// the first place.
264+
if (RawNode.isRecorded())
265+
getSyntaxCreator().finalizeNode(RawNode.getOpaqueNode());
264266
continue;
267+
}
265268

266269
AllTopLevel.push_back(RawNode);
267270
}

branches/master-next/lib/Sema/TypeCheckDecl.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3501,7 +3501,9 @@ void bindFuncDeclToOperator(TypeChecker &TC, FuncDecl *FD) {
35013501
for (DeclContext *CurContext = FD->getLocalContext();
35023502
!isa<SourceFile>(CurContext);
35033503
CurContext = CurContext->getParent()) {
3504-
insertionLoc = CurContext->getAsDecl()->getStartLoc();
3504+
// Skip over non-decl contexts (e.g. closure expresssions)
3505+
if (auto *D = CurContext->getAsDecl())
3506+
insertionLoc = D->getStartLoc();
35053507
}
35063508
}
35073509

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// RUN: not %target-swift-frontend -typecheck %s
2+
{
3+
static func ??= (lhs: inout Optional, rhs: Optional) {}
4+
}

0 commit comments

Comments
 (0)