Skip to content

Commit 7618da5

Browse files
committed
Fix -vv crash when trying to print ArrayInitializer
Which doesn't have a toChars() implementation.
1 parent 4bc2aef commit 7618da5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gen/arrays.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ static void DtoSetArray(DValue *array, DValue *rhs) {
308308

309309
LLConstant *DtoConstArrayInitializer(ArrayInitializer *arrinit,
310310
Type *targetType, const bool isCfile) {
311-
IF_LOG Logger::println("DtoConstArrayInitializer: %s | %s",
312-
arrinit->toChars(), targetType->toChars());
311+
IF_LOG Logger::println("DtoConstArrayInitializer | %s",
312+
targetType->toChars());
313313
LOG_SCOPE;
314314

315315
assert(arrinit->value.length == arrinit->index.length);

0 commit comments

Comments
 (0)