diff options
| author | martinboehme <mboehme@google.com> | 2024-06-11 08:40:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-11 08:40:02 +0200 |
| commit | 275196d866c86d95fc46b3324876ccbea09da79b (patch) | |
| tree | 7b2eef1b5f31b72e1a5df91785c4498dcbc2599d /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 05e87a583ce2680fc7309491c8bc23fd0e3bd049 (diff) | |
[clang][nullability] Don't return null fields from `getReferencedDecls()`. (#94983)
The patch includes a repro for a case where we were returning a null
`FieldDecl`
when calling `getReferencedDecls()` on the `InitListExpr` for a union.
Also, I noticed while working on this that `RecordInitListHelper` has a
bug
where it doesn't work correctly for empty unions. This patch also
includes a
repro and fix for this bug.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
