[clang] [Clang] prevent assertion in __has_embed parameter recovery at end-of-directive (PR #175104)

Oleksandr Tarasiuk via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 23 14:47:08 PST 2026


================
@@ -3686,14 +3686,14 @@ Preprocessor::LexEmbedParameters(Token &CurTok, bool ForHasEmbed) {
           std::pair<tok::TokenKind, SourceLocation> Matches) {
         Diag(CurTok, diag::err_expected) << Expected;
         Diag(Matches.second, diag::note_matching) << Matches.first;
-        if (CurTok.isNot(EndTokenKind))
----------------
a-tarasyuk wrote:

@shafik, when you have a moment, could you please advise whether it’s OK to proceed with the merge? thanks

https://github.com/llvm/llvm-project/pull/175104


More information about the cfe-commits mailing list