diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index a6f18e15..46047b6b 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -1391,7 +1391,7 @@ LLConstant* DtoConstExpInit(Loc loc, Type* targetType, Expression* exp) { Logger::println("Building vector initializer from scalar."); - TypeVector* tv = (TypeVector*)base; + TypeVector* tv = static_cast(targetBase); assert(tv->basetype->ty == Tsarray); dinteger_t elemCount = static_cast(tv->basetype)->dim->toInteger();