diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index 9a5a2a82..6af17abd 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -809,6 +809,10 @@ DValue* DtoCastVector(Loc& loc, DValue* val, Type* to) return new DImValue(to, array); } } + else if (totype->ty == Tvector && to->size() == val->getType()->size()) + { + return new DImValue(to, val->getRVal()); + } else { error(loc, "invalid cast from '%s' to '%s'", val->getType()->toChars(), to->toChars());