mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-13 19:04:10 +02:00
D1 build fix.
This commit is contained in:
@@ -1476,12 +1476,14 @@ LLConstant* DtoConstExpInit(Loc loc, Type* type, Expression* exp)
|
||||
Logger::println("type is a static array, building constant array initializer to single value");
|
||||
return expand_to_sarray(base, exp);
|
||||
}
|
||||
#if DMDV2
|
||||
else if (base->ty == Tvector)
|
||||
{
|
||||
LLConstant* val = exp->toConstElem(gIR);
|
||||
TypeVector* tv = (TypeVector*)base;
|
||||
return llvm::ConstantVector::getSplat(tv->size(loc), val);
|
||||
}
|
||||
#endif
|
||||
else
|
||||
{
|
||||
error(loc, "LDC internal error: cannot yet convert default initializer %s of type %s to %s",
|
||||
|
||||
Reference in New Issue
Block a user