Skip to content

Commit 3430ecd

Browse files
committed
[SILUnitTests] Added check for remaining args.
1 parent 3e8d7da commit 3430ecd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/swift/SILOptimizer/Utils/ParseTestSpecification.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ struct Arguments {
125125
untakenIndex = 0;
126126
}
127127

128+
bool hasUntaken() { return untakenIndex < storage.size(); }
129+
128130
Arguments() {}
129131
Arguments(Arguments const &) = delete;
130132
Arguments &operator=(Arguments const &) = delete;

0 commit comments

Comments
 (0)