mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 12:53:14 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user