[all-commits] [llvm/llvm-project] 679605: [CodeGen] Fix the type of the constant that is use...
Akira Hatanaka via All-commits
all-commits at lists.llvm.org
Tue May 23 16:34:31 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6796053723a68b99149737439856e6da25953975
https://github.com/llvm/llvm-project/commit/6796053723a68b99149737439856e6da25953975
Author: Akira Hatanaka <ahatanaka at apple.com>
Date: 2023-05-23 (Tue, 23 May 2023)
Changed paths:
M clang/lib/CodeGen/CGExprConstant.cpp
M clang/test/CodeGenCXX/flexible-array-init.cpp
Log Message:
-----------
[CodeGen] Fix the type of the constant that is used to zero-initialize a
flexible array member
A zero-element array type was incorrectly being used when an incomplete
array was being initialized with a non-empty initializer.
This fixes an assertion failure in AddInitializerToStaticVarDecl. See
the discussion here: https://reviews.llvm.org/D123649#4362210
Differential Revision: https://reviews.llvm.org/D151172
More information about the All-commits
mailing list