From 171ab1bc181258d6c47d1237250c7b36178a2bf7 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 23 Dec 2022 20:07:02 +0000 Subject: [PATCH] Add explicit template instantiation declarations for existing explicit definitions. Explicit instantiations should be declared. Found with -Wundefined-func-template. Reviewed By: dblaikie, rriddle Differential Revision: https://reviews.llvm.org/D140594 --- mlir/include/mlir/IR/Dominance.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mlir/include/mlir/IR/Dominance.h b/mlir/include/mlir/IR/Dominance.h index d94d5be..30f5674 100644 --- a/mlir/include/mlir/IR/Dominance.h +++ b/mlir/include/mlir/IR/Dominance.h @@ -24,6 +24,7 @@ extern template class llvm::DominatorTreeBase; extern template class llvm::DominatorTreeBase; +extern template class llvm::DomTreeNodeBase; namespace mlir { using DominanceInfoNode = llvm::DomTreeNodeBase; @@ -109,6 +110,9 @@ protected: mutable DenseMap> dominanceInfos; }; + +extern template class DominanceInfoBase; +extern template class DominanceInfoBase; } // namespace detail /// A class for computing basic dominance information. Note that this -- 2.7.4