diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index 6af17abd..a06dae59 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -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 {