Fix a few clang warnings. [NFC]

This commit is contained in:
Johan Engelen 2016-07-27 20:20:07 +02:00
parent 70c23125cf
commit c6ba2dc29b
5 changed files with 6 additions and 18 deletions

View file

@ -561,7 +561,6 @@ DValue *DtoCastVector(Loc &loc, DValue *val, Type *to) {
assert(val->type->toBasetype()->ty == Tvector);
Type *totype = to->toBasetype();
LLType *tolltype = DtoType(to);
TypeVector *type = static_cast<TypeVector *>(val->type->toBasetype());
if (totype->ty == Tsarray) {
// If possible, we need to cast only the address of the vector without