mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Bitcast the LLValue to the correct type.
This commit is contained in:
@@ -811,7 +811,7 @@ DValue* DtoCastVector(Loc& loc, DValue* val, Type* to)
|
||||
}
|
||||
else if (totype->ty == Tvector && to->size() == val->getType()->size())
|
||||
{
|
||||
return new DImValue(to, val->getRVal());
|
||||
return new DImValue(to, DtoBitCast(val->getRVal(), tolltype));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user