Skip to content

Commit a7d3ae6

Browse files
committed
Template parameter name
1 parent 05a2443 commit a7d3ae6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mlir/include/mlir/Support/StateStack.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,18 @@ class StateStack {
8989
};
9090

9191
/// RAII object calling stackPush/stackPop on construction/destruction.
92-
/// HOST_CLASS could be a StateStack or some other class which forwards calls to
92+
/// HostClass could be a StateStack or some other class which forwards calls to
9393
/// one.
94-
template <typename T, typename HOST_CLASS>
94+
template <typename T, typename HostClass = StateStack>
9595
struct SaveStateStack {
9696
template <typename... Args>
97-
explicit SaveStateStack(HOST_CLASS &host, Args &&...args) : host(host) {
97+
explicit SaveStateStack(HostClass &host, Args &&...args) : host(host) {
9898
host.template stackPush<T>(std::forward<Args>(args)...);
9999
}
100100
~SaveStateStack() { host.stackPop(); }
101101

102102
private:
103-
HOST_CLASS &host;
103+
HostClass &host;
104104
};
105105

106106
} // namespace mlir

0 commit comments

Comments
 (0)