Skip to content

Commit 0f16622

Browse files
committed
[InferWidths] Add missing <stack> include for std::stack
1 parent 5aa1727 commit 0f16622

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/Dialect/FIRRTL/Transforms/InferWidths_new.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ class Term {
127127
};
128128

129129
#include <list>
130+
#include <stack>
130131
class Terms {
131132
private:
132133
std::list<Term> terms_;
@@ -2028,16 +2029,18 @@ LogicalResult InferenceMapping::extractConstraints(Operation *op) {
20282029
//===----------------------------------------------------------------------===//
20292030
// upper_bound
20302031
//===----------------------------------------------------------------------===//
2032+
2033+
struct StackFrame {
2034+
Node *node;
2035+
size_t nextChildIndex;
2036+
};
2037+
20312038
std::vector<Node *> findPathBetween(Node *start, Node *end) {
20322039
if (!start || !end)
20332040
return {};
20342041
if (start == end)
20352042
return {start};
20362043

2037-
struct StackFrame {
2038-
Node *node;
2039-
size_t nextChildIndex;
2040-
};
20412044
std::stack<StackFrame> stack;
20422045
std::unordered_set<Node *> visited;
20432046
std::vector<Node *> path;

0 commit comments

Comments
 (0)