diff options
author | Takuya Shimizu <shimizu2486@gmail.com> | 2024-06-30 14:09:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-30 14:09:10 +0900 |
commit | 6b737c444617fe8c11eb48f978c579cc160bfff0 (patch) | |
tree | 95cb50caa08da27dc20530e121b6134f90d971fe /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | 49fdbbcfed96a3d7a957a4d9c31ebeb1d3950dd2 (diff) | |
download | llvm-6b737c444617fe8c11eb48f978c579cc160bfff0.zip llvm-6b737c444617fe8c11eb48f978c579cc160bfff0.tar.gz llvm-6b737c444617fe8c11eb48f978c579cc160bfff0.tar.bz2 |
[clang][Sema] Fix crash on atomic builtins with incomplete type args (#96374)
This patch fixes the crash when pointers to incomplete type are passed
to atomic builtins such as `__atomic_load`.
`ASTContext::getTypeInfoInChars` assumes that the argument type is a
complete type, so I added a check to eliminate cases where incomplete
types gets passed to this function
Relevant PR: https://github.com/llvm/llvm-project/pull/91057
Fixes https://github.com/llvm/llvm-project/issues/96289
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions