Windows: fix some compiler warnings during build

This commit is contained in:
Matt Pharr
2011-10-09 07:32:51 -07:00
parent 4a2cbf2c4e
commit 6b4459d402
5 changed files with 216 additions and 42 deletions

View File

@@ -163,7 +163,9 @@ lLLVMTypeToISPCType(const llvm::Type *t, bool intAsUnsigned) {
intAsUnsigned);
if (eltType == NULL)
return NULL;
return new ReferenceType(new ArrayType(eltType, at->getNumElements()),
// FIXME: this needs to be fixed when arrays can have
// over 4G elements...
return new ReferenceType(new ArrayType(eltType, (int)at->getNumElements()),
false);
}
}