[all-commits] [llvm/llvm-project] 5fa462: [Sema] Check whether `__auto_type` has been deduce...
Akira Hatanaka via All-commits
all-commits at lists.llvm.org
Fri Jun 24 09:50:21 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5fa4629581f6938cc175be5d4a3fccdfbf9fc227
https://github.com/llvm/llvm-project/commit/5fa4629581f6938cc175be5d4a3fccdfbf9fc227
Author: Akira Hatanaka <ahatanaka at apple.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M clang/lib/AST/ASTContext.cpp
A clang/test/Sema/warn-memset-bad-sizeof.c
Log Message:
-----------
[Sema] Check whether `__auto_type` has been deduced before merging
This fixes a bug in clang where it emits the following diagnostic when
compiling the test case:
"argument to 'sizeof' in 'memset' call is the same pointer type 'S' as
the destination"
The code that merges __auto_type with other types was committed in
https://reviews.llvm.org/D122029.
Differential Revision: https://reviews.llvm.org/D128373
More information about the All-commits
mailing list