Bitcast the LLValue to the correct type.

This commit is contained in:
Jernej Krempuš
2012-10-05 21:58:19 +02:00
parent 39300283c0
commit 7966abeb5e

View File

@@ -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
{