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
committed by David Nadlinger
parent e8814d0603
commit a00091a5fa

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;