Skip to content

Commit b7863d1

Browse files
[mlir] Fix misleading comment for type trait (#103041)
We are using `has_initialize` to check the class has `initialize` function instead of the `getOperationName` function.
1 parent 64d9713 commit b7863d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/include/mlir/IR/PatternMatch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class RewritePattern : public Pattern {
289289
using Pattern::Pattern;
290290

291291
private:
292-
/// Trait to check if T provides a `getOperationName` method.
292+
/// Trait to check if T provides a `initialize` method.
293293
template <typename T, typename... Args>
294294
using has_initialize = decltype(std::declval<T>().initialize());
295295
template <typename T>

0 commit comments

Comments
 (0)