Skip to content

Commit ecd59f8

Browse files
committed
[SelectionDAG] Use SmallVectorImpl& to avoid repeating SmallVector size. NFC
1 parent c760671 commit ecd59f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11872,7 +11872,7 @@ bool operator<(const UseMemo &L, const UseMemo &R) {
1187211872
/// pointed to by a UseMemo is deleted, set the User to nullptr to indicate that
1187311873
/// the node already has been taken care of recursively.
1187411874
class RAUOVWUpdateListener : public SelectionDAG::DAGUpdateListener {
11875-
SmallVector<UseMemo, 4> &Uses;
11875+
SmallVectorImpl<UseMemo> &Uses;
1187611876

1187711877
void NodeDeleted(SDNode *N, SDNode *E) override {
1187811878
for (UseMemo &Memo : Uses)
@@ -11881,7 +11881,7 @@ class RAUOVWUpdateListener : public SelectionDAG::DAGUpdateListener {
1188111881
}
1188211882

1188311883
public:
11884-
RAUOVWUpdateListener(SelectionDAG &d, SmallVector<UseMemo, 4> &uses)
11884+
RAUOVWUpdateListener(SelectionDAG &d, SmallVectorImpl<UseMemo> &uses)
1188511885
: SelectionDAG::DAGUpdateListener(d), Uses(uses) {}
1188611886
};
1188711887

0 commit comments

Comments
 (0)