diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index 02e871f55b..882c985b50 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -863,9 +863,6 @@ void DtoResolveVariable(VarDeclaration *vd) { auto irGlobal = getIrGlobal(vd, true); irGlobal->getValue(); - - assert(!vd->ir->isInitialized()); - vd->ir->setInitialized(); } } diff --git a/ir/irdsymbol.cpp b/ir/irdsymbol.cpp index c821da7d83..a90d22bbf8 100644 --- a/ir/irdsymbol.cpp +++ b/ir/irdsymbol.cpp @@ -67,12 +67,6 @@ void IrDsymbol::setDeclared() { } } -void IrDsymbol::setInitialized() { - if (m_state < Initialized) { - m_state = Initialized; - } -} - void IrDsymbol::setDefined() { if (m_state < Defined) { m_state = Defined; diff --git a/ir/irdsymbol.h b/ir/irdsymbol.h index 26230ea448..e8feba4d90 100644 --- a/ir/irdsymbol.h +++ b/ir/irdsymbol.h @@ -45,7 +45,7 @@ struct IrDsymbol { FieldType }; - enum State { Initial, Resolved, Declared, Initialized, Defined }; + enum State { Initial, Resolved, Declared, Defined }; static std::vector list; static void resetAll(); @@ -63,12 +63,10 @@ struct IrDsymbol { bool isResolved() const { return m_state >= Resolved; } bool isDeclared() const { return m_state >= Declared; } - bool isInitialized() const { return m_state >= Initialized; } bool isDefined() const { return m_state >= Defined; } void setResolved(); void setDeclared(); - void setInitialized(); void setDefined(); private: