diff --git a/third_party/mlir/lib/Transforms/ViewOpGraph.cpp b/third_party/mlir/lib/Transforms/ViewOpGraph.cpp index 367240db3d0..afb65c7d148 100644 --- a/third_party/mlir/lib/Transforms/ViewOpGraph.cpp +++ b/third_party/mlir/lib/Transforms/ViewOpGraph.cpp @@ -31,7 +31,7 @@ namespace llvm { // Specialize GraphTraits to treat Block as a graph of Operations as nodes and // uses as edges. -template <> struct llvm::GraphTraits { +template <> struct GraphTraits { using GraphType = mlir::Block *; using NodeRef = mlir::Operation *;