diff options
author | Volodymyr Sapsai <vsapsai@apple.com> | 2023-05-25 18:09:11 -0700 |
---|---|---|
committer | Volodymyr Sapsai <vsapsai@apple.com> | 2023-06-09 17:09:28 -0700 |
commit | 2e16df352c7acb910313c80ac90b650ad9c14a3d (patch) | |
tree | 3a82d8918779ff2ec4ce2c15fe41905d6aa5b667 /llvm/lib/CodeGen/TargetPassConfig.cpp | |
parent | 261b693afd82b7dc935bbbafa44b16f591a38daf (diff) | |
download | llvm-2e16df352c7acb910313c80ac90b650ad9c14a3d.zip llvm-2e16df352c7acb910313c80ac90b650ad9c14a3d.tar.gz llvm-2e16df352c7acb910313c80ac90b650ad9c14a3d.tar.bz2 |
[ASTStructuralEquivalence] Fix crash when ObjCCategoryDecl doesn't have corresponding ObjCInterfaceDecl.
When this happens, it is invalid code and there is diagnostic
```
error: cannot find interface declaration for '...'
```
But clang shouldn't crash even if code is invalid. Though subsequent
diagnostic can be imperfect because without ObjCInterfaceDecl we don't have
a type for error messages.
rdar://108818430
Differential Revision: https://reviews.llvm.org/D151523
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
0 files changed, 0 insertions, 0 deletions