Skip to content

Commit bd133fa

Browse files
committed
---
yaml --- r: 349326 b: refs/heads/master-next c: aa65455 h: refs/heads/master
1 parent f579fc8 commit bd133fa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
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: c56421c5be1c32481f710d635daf03027f6a2171
3+
refs/heads/master-next: aa65455f4924504a3606cae145499fc27fa70eda
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/include/swift/Parse/LibSyntaxGenerator.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ class LibSyntaxGenerator {
4444

4545
auto Recorded = Recorder.recordToken(Kind, Range, LeadingTriviaPieces,
4646
TrailingTriviaPieces);
47-
auto Raw = static_cast<RawSyntax *>(Recorded.takeOpaqueNode());
47+
RC<RawSyntax> Raw{static_cast<RawSyntax *>(Recorded.takeOpaqueNode())};
48+
Raw->Release(); // -1 since it's transfer of ownership.
4849
return make<TokenSyntax>(Raw);
4950
}
5051

@@ -55,7 +56,7 @@ class LibSyntaxGenerator {
5556
auto Children = Node.getDeferredChildren();
5657

5758
auto Recorded = Recorder.recordRawSyntax(Kind, Children);
58-
RC<RawSyntax> Raw {static_cast<RawSyntax *>(Recorded.takeOpaqueNode()) };
59+
RC<RawSyntax> Raw{static_cast<RawSyntax *>(Recorded.takeOpaqueNode())};
5960
Raw->Release(); // -1 since it's transfer of ownership.
6061
return make<SyntaxNode>(Raw);
6162
}

0 commit comments

Comments
 (0)