Wrap CfgTraitsFor in namespace llvm to please GCC 5

This commit is contained in:
Lei Zhang 2020-10-20 13:04:02 -04:00
parent 91dc545bf2
commit f2a06875b6
1 changed files with 3 additions and 2 deletions

View File

@ -45,10 +45,11 @@ public:
} // namespace mlir
template <>
struct llvm::CfgTraitsFor<mlir::Block> {
namespace llvm {
template <> struct CfgTraitsFor<mlir::Block> {
using CfgTraits = mlir::CfgTraits;
};
} // namespace llvm
extern template class llvm::DominatorTreeBase<mlir::Block, false>;
extern template class llvm::DominatorTreeBase<mlir::Block, true>;