[mlir] Fix DialectRegistry::addExtension compile error

It appears that the DialectRegistry::addExtension template was never
instantiated because it contains an obvious compilation error. Fix it.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D123199
This commit is contained in:
Alex Zinenko 2022-04-06 12:33:24 +02:00
parent ba4482f481
commit 82c18dd9ad
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ public:
template <typename... ExtensionsT>
void addExtensions() {
(void)std::initializer_list<int>{
addExtension(std::make_unique<ExtensionsT>())...};
(addExtension(std::make_unique<ExtensionsT>()), 0)...};
}
/// Add an extension function that requires the given dialects.