Fix up botched merge in 005f993.

This commit is contained in:
David Nadlinger
2013-06-02 22:02:09 +02:00
parent 005f993982
commit 3b38d34698

View File

@@ -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<TypeVector*>(targetBase);
assert(tv->basetype->ty == Tsarray);
dinteger_t elemCount =
static_cast<TypeSArray *>(tv->basetype)->dim->toInteger();