mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-10 12:59:21 +03:00
Fix yet another missed bitcast
This commit is contained in:
parent
5285fe7a61
commit
fe9c769ce1
1 changed files with 2 additions and 1 deletions
|
@ -781,7 +781,8 @@ DSliceValue* DtoCatArrays(Loc& loc, Type* arrayType, Expression* exp1, Expressio
|
||||||
unsigned int i = 0;
|
unsigned int i = 0;
|
||||||
for (ArgVector::reverse_iterator I = arrs.rbegin(), E = arrs.rend(); I != E; ++I)
|
for (ArgVector::reverse_iterator I = arrs.rbegin(), E = arrs.rend(); I != E; ++I)
|
||||||
{
|
{
|
||||||
DtoStore(DtoLoad(*I), DtoGEPi(array, 0, i++, ".slice"));
|
LLValue* v = DtoLoad(DtoBitCast(*I, ptrarraytype));
|
||||||
|
DtoStore(v, DtoGEPi(array, 0, i++, ".slice"));
|
||||||
}
|
}
|
||||||
|
|
||||||
LLStructType* type2 = DtoArrayType(arraytype);
|
LLStructType* type2 = DtoArrayType(arraytype);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue