diff options
author | Ziqing Luo <ziqing@udel.edu> | 2025-05-07 15:08:44 -0700 |
---|---|---|
committer | Ziqing Luo <ziqing_luo@apple.com> | 2025-05-07 15:55:52 -0700 |
commit | b756c82bfacb2822cd516c32ae3c406e71448c0a (patch) | |
tree | 573d4e3b8104700e67f679cff8d88cbacb5ddb64 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 0d0ef58c8facb0f2e5c2f4615b0d25f19e5abe01 (diff) | |
download | llvm-b756c82bfacb2822cd516c32ae3c406e71448c0a.zip llvm-b756c82bfacb2822cd516c32ae3c406e71448c0a.tar.gz llvm-b756c82bfacb2822cd516c32ae3c406e71448c0a.tar.bz2 |
Re-land "[analyzer] Make it a noop when initializing a field of empty record" (#138951)
The original commit assumes that
`CXXConstructExpr->getType()->getAsRecordDecl()` is always a
`CXXRecordDecl` but it is not true for ObjC programs.
This relanding changes
`cast<CXXRecordDecl>(CXXConstructExpr->getType()->getAsRecordDecl())`
to
`dyn_cast_or_null<CXXRecordDecl>(CXXConstructExpr->getType()->getAsRecordDecl())`
This reverts commit 9048c2d4f239cb47fed17cb150e2bbf3934454c2.
rdar://146753089
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions