diff options
author | Cyndy Ishida <cyndy_ishida@apple.com> | 2025-06-06 13:45:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-06 13:45:16 -0700 |
commit | 897b0301d2e2ff28d3976fe95b64be5a85815908 (patch) | |
tree | 9391a1745cbfac6569d7814109c5606ebff2b042 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 8fa440a1e05f26901d6f40ca19f78609a02b0e1f (diff) | |
download | llvm-897b0301d2e2ff28d3976fe95b64be5a85815908.zip llvm-897b0301d2e2ff28d3976fe95b64be5a85815908.tar.gz llvm-897b0301d2e2ff28d3976fe95b64be5a85815908.tar.bz2 |
[clang][dep-scan] Resolve lexer crash from a permutation of invalid tokens (#142452)
Sometimes, when a user writes invalid code, the minimization used for
scanning can create a stream of tokens that is invalid at lex time. This
patch protects against the case where there are valid (non-c++20) import
directives discovered in the middle of an invalid `import` declaration.
Mostly authored by: @akyrtzi
resolves: rdar://152335844
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions