Skip to content
Commit 67960537 authored by Akira Hatanaka's avatar Akira Hatanaka
Browse files

[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
parent 1f7c1741
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment