Fix ldc1 regressions

This commit is contained in:
Alexey Prokhin
2011-09-10 13:24:29 +04:00
parent f3c901af9d
commit 8f4a15c868
2 changed files with 4 additions and 1 deletions

View File

@@ -162,6 +162,9 @@ Statement *AsmStatement::semantic(Scope *sc)
//puts(toChars());
#if DMDV1
sc->func->inlineAsm = true;
#endif
sc->func->hasReturnExp |= 8;
sc->func->inlineStatus = ILSno; // %% not sure

View File

@@ -2755,7 +2755,7 @@ DValue* StructLiteralExp::toElem(IRState* p)
#endif
else
{
if (vd->init->isVoidInitializer())
if (vd->init && vd->init->isVoidInitializer())
continue;
IF_LOG Logger::println("using default initializer");
cv.c = get_default_initializer(vd, NULL);