added varying new/delete

This commit is contained in:
Evghenii
2014-01-24 09:22:55 +01:00
parent be6ac0408a
commit 5a8351d7ea
3 changed files with 55 additions and 5 deletions

View File

@@ -8654,7 +8654,7 @@ NewExpr::TypeCheck() {
}
if (g->target->getISA() == Target::NVPTX && allocType->IsVaryingType())
{
Error(pos, "\"sizeof\" with varying data types is not yet supported with \"nvptx\" target.");
Error(pos, "\"new\" with varying data types is not yet supported with \"nvptx\" target.");
return NULL;
}
if (CastType<UndefinedStructType>(allocType) != NULL) {