From f2a06875b604c00cbe96e54363f4f5d28935d610 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 20 Oct 2020 13:04:02 -0400 Subject: [PATCH] Wrap CfgTraitsFor in namespace llvm to please GCC 5 --- mlir/include/mlir/IR/Dominance.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;