Change naked asm functions to accept enum declaration.

An enum defines constant values which can be used without trouble in
naked asm functions.
This commit is contained in:
kai
2013-03-04 06:51:12 +01:00
parent bf52dbe389
commit d5744346c6

View File

@@ -72,7 +72,7 @@ void ExpStatement::toNakedIR(IRState *p)
Statement::toNakedIR(p);
return;
}
else if (vd && !vd->isDataseg())
else if (vd && !(vd->storage_class & (STCstatic | STCmanifest)))
{
error("non-static variable '%s' not allowed in naked function", vd->toChars());
return;