From f98a8cc22f4a8ce8e9ec0fbbf5a8e2449fd9957c Mon Sep 17 00:00:00 2001 From: Evghenii Date: Wed, 8 Jan 2014 13:39:31 +0100 Subject: [PATCH] allow declaratoin of varying arrays in global scope. seems to work autmatically. needs more testing --- module.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module.cpp b/module.cpp index b10a4daf..a407c2fe 100644 --- a/module.cpp +++ b/module.cpp @@ -422,12 +422,14 @@ Module::AddGlobalVariable(const std::string &name, const Type *type, Expr *initE return; } +#if 0 if (g->target->getISA() == Target::NVPTX && type->IsVaryingType()) { Error(pos, "Global \"varying\" variables are not yet supported in \"nvptx\" target."); return; } +#endif if (Type::Equal(type, AtomicType::Void)) { Error(pos, "\"void\" type global variable is illegal.");