[all-commits] [llvm/llvm-project] 0ca105: Check whether the allocated type is an array type ...
Akira Hatanaka via All-commits
all-commits at lists.llvm.org
Mon Sep 26 14:21:42 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0ca1051bfc6e9548763f0a52641733393c33a427
https://github.com/llvm/llvm-project/commit/0ca1051bfc6e9548763f0a52641733393c33a427
Author: Akira Hatanaka <ahatanaka at apple.com>
Date: 2022-09-26 (Mon, 26 Sep 2022)
Changed paths:
M clang/lib/Sema/SemaExprCXX.cpp
M clang/test/SemaCXX/array-alignment.cpp
Log Message:
-----------
Check whether the allocated type is an array type before calling
checkArrayElementAlignment in Sema::BuildCXXNew
This commit fixes a bug that was introduced by adaf62ced and reported
here: https://reviews.llvm.org/D133711#3814717
More information about the All-commits
mailing list