[llvm-branch-commits] [mlir] f2a0687 - Wrap CfgTraitsFor in namespace llvm to please GCC 5

Lei Zhang via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Oct 20 10:04:51 PDT 2020


Author: Lei Zhang
Date: 2020-10-20T13:04:02-04:00
New Revision: f2a06875b604c00cbe96e54363f4f5d28935d610

URL: https://github.com/llvm/llvm-project/commit/f2a06875b604c00cbe96e54363f4f5d28935d610
DIFF: https://github.com/llvm/llvm-project/commit/f2a06875b604c00cbe96e54363f4f5d28935d610.diff

LOG: Wrap CfgTraitsFor in namespace llvm to please GCC 5

Added: 
    

Modified: 
    mlir/include/mlir/IR/Dominance.h

Removed: 
    


################################################################################
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 @@ class CfgTraits : public llvm::CfgTraits<CfgTraitsBase, CfgTraits> {
 
 } // 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>;


        


More information about the llvm-branch-commits mailing list