File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
branches/master-rebranch/lib/Parse Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1455,7 +1455,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
1455
1455
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
1456
1456
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
1457
1457
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1458
- refs/heads/master-rebranch: ad5b8253e3f1005b309595e9230128a2a73cec08
1458
+ refs/heads/master-rebranch: 8da82d327226f20327fd15b6435913a11713711b
1459
1459
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
1460
1460
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
1461
1461
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec
Original file line number Diff line number Diff line change @@ -2046,9 +2046,7 @@ bool Lexer::lexUnknown(bool EmitDiagnosticsIfToken) {
2046
2046
2047
2047
// This character isn't allowed in Swift source.
2048
2048
uint32_t Codepoint = validateUTF8CharacterAndAdvance (Tmp, BufferEnd);
2049
- // fixme: replace with `UNI_REPLACEMENT_CHAR`
2050
- if (Codepoint == ~0U || Codepoint == 0x0000FFFD ) {
2051
- // Invalid UTF-8 character or replacement character.
2049
+ if (Codepoint == ~0U ) {
2052
2050
diagnose (CurPtr - 1 , diag::lex_invalid_utf8)
2053
2051
.fixItReplaceChars (getSourceLoc (CurPtr - 1 ), getSourceLoc (Tmp), " " );
2054
2052
CurPtr = Tmp;
You can’t perform that action at this time.
0 commit comments