added Error that "soa" data types are not support with nvptx target

This commit is contained in:
Evghenii
2014-01-23 11:16:08 +01:00
parent e87e332d2f
commit ce88e95032

View File

@@ -168,6 +168,11 @@ DeclSpecs::GetBaseType(SourcePos pos) const {
retType = lApplyTypeQualifiers(typeQualifiers, retType, pos);
if (soaWidth > 0) {
if (g->target->getISA() == Target::NVPTX)
{
Error(pos, "\"soa\" data types are currently not supported with \"nvptx\" target.");
return NULL;
}
const StructType *st = CastType<StructType>(retType);
if (st == NULL) {