mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-15 11:23:14 +01:00
Fix ldc1 regressions
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user