File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
mlir/include/mlir/Support Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 >
9595struct 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
102102private:
103- HOST_CLASS &host;
103+ HostClass &host;
104104};
105105
106106} // namespace mlir
You can’t perform that action at this time.
0 commit comments