diff --git a/mlir/include/mlir/IR/Dominance.h b/mlir/include/mlir/IR/Dominance.h index 24d718362e13..7b41f8b0896d 100644 --- a/mlir/include/mlir/IR/Dominance.h +++ b/mlir/include/mlir/IR/Dominance.h @@ -45,10 +45,11 @@ public: } // namespace mlir -template <> -struct llvm::CfgTraitsFor { +namespace llvm { +template <> struct CfgTraitsFor { using CfgTraits = mlir::CfgTraits; }; +} // namespace llvm extern template class llvm::DominatorTreeBase; extern template class llvm::DominatorTreeBase;