Files
clang-p2996/clang/test/SemaCXX/atomic-ops.cpp
Takuya Shimizu 6b737c4446 [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
2024-06-30 14:09:10 +09:00

719 B