Added empty ImportStatement::toIR(). That fixes import from a function

This commit is contained in:
Alexey Prokhin
2011-07-19 20:02:39 +04:00
parent 4cc10019ee
commit 6576b68dfd
2 changed files with 7 additions and 1 deletions

View File

@@ -1644,6 +1644,12 @@ void SwitchErrorStatement::toIR(IRState* p)
//////////////////////////////////////////////////////////////////////////////
void ImportStatement::toIR(IRState *irs)
{
}
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
#define STUBST(x) void x::toIR(IRState * p) {error("Statement type "#x" not implemented: %s", toChars());fatal();}