Skip to content

Commit 8592496

Browse files
omochirintaro
authored andcommitted
[Parse] Remove dead code in lexHash (#15154)
1 parent be28f68 commit 8592496

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/Parse/Lexer.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -644,15 +644,6 @@ void Lexer::lexHash() {
644644
++CurPtr;
645645
return formToken(tok::r_square_lit, TokStart);
646646
}
647-
648-
// Allow a hashbang #! line at the beginning of the file.
649-
if (CurPtr - 1 == ContentStart && *CurPtr == '!') {
650-
--CurPtr;
651-
if (BufferID != SourceMgr.getHashbangBufferID())
652-
diagnose(CurPtr, diag::lex_hashbang_not_allowed);
653-
skipHashbang(/*EatNewline=*/true);
654-
return lexImpl();
655-
}
656647

657648
// Scan for [a-zA-Z]+ to see what we match.
658649
const char *tmpPtr = CurPtr;

0 commit comments

Comments
 (0)