Skip to content

Commit 520a893

Browse files
committed
ParseTestSpecification: remove an unused private member variable
To fix a warning
1 parent 1f4ac2b commit 520a893

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: lib/SILOptimizer/UtilityPasses/ParseTestSpecification.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,6 @@ static TraceValueMap traceValues;
544544

545545
class ParseTestSpecification {
546546
friend class ParseArgumentSpecification;
547-
SILFunction *function;
548547
SmallVectorImpl<StringRef> &components;
549548

550549
SILValue getTraceValue(unsigned index, SILFunction *function) {
@@ -561,9 +560,8 @@ class ParseTestSpecification {
561560
}
562561

563562
public:
564-
ParseTestSpecification(SILFunction *function,
565-
SmallVectorImpl<StringRef> &components)
566-
: function(function), components(components) {}
563+
ParseTestSpecification(SmallVectorImpl<StringRef> &components)
564+
: components(components) {}
567565

568566
void parse(UnparsedSpecification const &specification, Arguments &arguments) {
569567
StringRef specificationString = specification.string;
@@ -607,6 +605,6 @@ void swift::test::getTestSpecifications(
607605
void swift::test::parseTestArgumentsFromSpecification(
608606
SILFunction *function, UnparsedSpecification const &specification,
609607
Arguments &arguments, SmallVectorImpl<StringRef> &argumentStrings) {
610-
ParseTestSpecification parser(function, argumentStrings);
608+
ParseTestSpecification parser(argumentStrings);
611609
parser.parse(specification, arguments);
612610
}

0 commit comments

Comments
 (0)