Wrap CfgTraitsFor in namespace llvm to please GCC 5
authorLei Zhang <antiagainst@google.com>
Tue, 20 Oct 2020 17:04:02 +0000 (13:04 -0400)
committerLei Zhang <antiagainst@google.com>
Tue, 20 Oct 2020 17:04:02 +0000 (13:04 -0400)
mlir/include/mlir/IR/Dominance.h

index 24d7183..7b41f8b 100644 (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>;