diff options
| author | Haojian Wu <hokein.wu@gmail.com> | 2024-05-07 09:10:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-07 09:10:29 +0200 |
| commit | fc866fd2a2cfca6d62f48dcf83778959fd24f559 (patch) | |
| tree | de2dc0137877b9c3ca98606f599aa0fbd3497536 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 2b9210d1aa9ce9c204b3af0158636c71a5a72e17 (diff) | |
[clang] Don't preserve the typo expr in the recovery expr for invalid VarDecls (#90948)
With the commit d5308949cf884d8e4b971d51a8b4f73584c4adec, we now
preserve the initializer for invalid decls with the recovery-expr.
However there is a chance that the original init expr is a typo-expr, we
should not preserve it in the final AST, as typo-expr is an internal AST
node. We should use the one after the typo correction.
This is spotted by a clangd hover crash on the testcase.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
