allowed static and disable memcpy/memmove/memset operations
This commit is contained in:
4
stmt.cpp
4
stmt.cpp
@@ -268,8 +268,8 @@ DeclStmt::EmitCode(FunctionEmitContext *ctx) const {
|
||||
if (sym->storageClass == SC_STATIC) {
|
||||
|
||||
if (g->target->getISA() == Target::NVPTX && !sym->type->IsConstType())
|
||||
Error(sym->pos,
|
||||
"Non-constant static variable ""\"%s\" is not supported with ""\"nvptx\" target.",
|
||||
PerformanceWarning(sym->pos,
|
||||
"Non-constant static variable ""\"%s\" is stored in __global address sace with ""\"nvptx\" target.",
|
||||
sym->name.c_str());
|
||||
if (g->target->getISA() == Target::NVPTX && sym->type->IsVaryingType())
|
||||
PerformanceWarning(sym->pos,
|
||||
|
||||
Reference in New Issue
Block a user