From 7966abeb5e964f53d4d36cfbcfbfaba291733a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jernej=20Krempu=C5=A1?= Date: Fri, 5 Oct 2012 21:58:19 +0200 Subject: [PATCH] Bitcast the LLValue to the correct type. --- gen/llvmhelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {