[all-commits] [llvm/llvm-project] 0d6b26: [Clang] Fix a crash when encountering an ill-forme...

cor3ntin via All-commits all-commits at lists.llvm.org
Tue Jan 3 11:58:07 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d6b26b4d3e3991da16f5b7f53e397b0051e8598
      https://github.com/llvm/llvm-project/commit/0d6b26b4d3e3991da16f5b7f53e397b0051e8598
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2023-01-03 (Tue, 03 Jan 2023)

  Changed paths:
    M clang/lib/Lex/Lexer.cpp
    M clang/test/Preprocessor/ucn-pp-identifier.c

  Log Message:
  -----------
  [Clang] Fix a crash when encountering an ill-formed delimited UCN.

\u<DIGIT>{...} was incorrectly parsed as a valid UCN instead
of emitting a diagnostic, causing an assertion failure.

Reviewed By: tahonermann

Differential Revision: https://reviews.llvm.org/D139889




More information about the All-commits mailing list