diff --git a/lib/Dialect/Dialect.cpp b/lib/Dialect/Dialect.cpp index 29ed78e..72de8f1 100644 --- a/lib/Dialect/Dialect.cpp +++ b/lib/Dialect/Dialect.cpp @@ -194,8 +194,7 @@ DialectContext::~DialectContext() { std::unique_ptr *extensionArray = getTrailingObjects>(); - for (unsigned i = 0; i < m_extensionArraySize; ++i) - std::destroy_n(extensionArray, m_extensionArraySize); + std::destroy_n(extensionArray, m_extensionArraySize); Dialect **dialectArray = getTrailingObjects(); for (unsigned i = 0; i < m_dialectArraySize; ++i)