mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
Error instead of assert when trying to build a default initializer for void[n].
This commit is contained in:
parent
1b16f2234e
commit
049e24cef8
6 changed files with 20 additions and 15 deletions
|
@ -289,7 +289,7 @@ LLConstant* DtoConstArrayInitializer(ArrayInitializer* arrinit)
|
|||
}
|
||||
|
||||
if (!v)
|
||||
v = DtoConstInitializer(t->nextOf(), init);
|
||||
v = DtoConstInitializer(arrinit->loc, t->nextOf(), init);
|
||||
assert(v);
|
||||
|
||||
inits[i] = v;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue