[Mlir-commits] [mlir] 82c18dd - [mlir] Fix DialectRegistry::addExtension compile error
Alex Zinenko
llvmlistbot at llvm.org
Wed Apr 6 04:00:39 PDT 2022
Author: Alex Zinenko
Date: 2022-04-06T13:00:34+02:00
New Revision: 82c18dd9add0fa96ac95256fd1b0b1202f9f56dd
URL: https://github.com/llvm/llvm-project/commit/82c18dd9add0fa96ac95256fd1b0b1202f9f56dd
DIFF: https://github.com/llvm/llvm-project/commit/82c18dd9add0fa96ac95256fd1b0b1202f9f56dd.diff
LOG: [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
Added:
Modified:
mlir/include/mlir/IR/DialectRegistry.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/DialectRegistry.h b/mlir/include/mlir/IR/DialectRegistry.h
index 064c63d9ad562..fbc81b0f04499 100644
--- a/mlir/include/mlir/IR/DialectRegistry.h
+++ b/mlir/include/mlir/IR/DialectRegistry.h
@@ -176,7 +176,7 @@ class DialectRegistry {
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.
More information about the Mlir-commits
mailing list