Skip to content

Commit 8ec2abf

Browse files
committed
Use marker fn for subactions SmallVector
Signed-off-by: Anna Rift <[email protected]>
1 parent 9aa0ff6 commit 8ec2abf

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

frontend/include/chpl/framework/mark-functions.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,6 @@ template<typename T, size_t i> struct mark<llvm::SmallVector<T, i>> {
9999
}
100100
};
101101

102-
template<typename T, size_t i> struct mark<llvm::SmallVector<T*, i>> {
103-
void operator()(Context* context, const llvm::SmallVector<T*, i>& keep) const {
104-
for (auto const &elt : keep) {
105-
chpl::mark<T> marker;
106-
marker(context, elt);
107-
}
108-
}
109-
};
110-
111102
template<typename T> struct mark<chpl::optional<T>> {
112103
void operator()(Context* context, const chpl::optional<T>& keep) const {
113104
if (keep) {

frontend/include/chpl/resolution/resolution-types.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2641,9 +2641,7 @@ class AssociatedAction {
26412641
id_.mark(context);
26422642
type_.mark(context);
26432643
chpl::mark<decltype(tupleEltIdx_)>{}(context, tupleEltIdx_);
2644-
for (const auto& subAction : subActions_) {
2645-
subAction->mark(context);
2646-
}
2644+
chpl::mark<decltype(subActions_)>{}(context, subActions_);
26472645
}
26482646

26492647
void stringify(std::ostream& ss, chpl::StringifyKind stringKind) const;

0 commit comments

Comments
 (0)