Skip to content

Commit 7c41103

Browse files
committed
[Test] Used bare function pointer.
There's no advantage to using an function_ref and it might be confusing.
1 parent 7f335b6 commit 7c41103

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/swift/SIL/Test.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
#define SWIFT_SIL_TEST_H
9999

100100
#include "swift/SIL/ParseTestSpecification.h"
101-
#include "llvm/ADT/STLFunctionalExtras.h"
102101

103102
namespace swift {
104103

@@ -128,8 +127,7 @@ class FunctionTest final {
128127
/// - Arguments & - the resolved list of args specified by the instruction
129128
/// - FunctionTest & - the test being run; used to find less commonly used
130129
/// values such as the results of analyses
131-
using Invocation =
132-
llvm::function_ref<void(SILFunction &, Arguments &, FunctionTest &)>;
130+
using Invocation = void (*)(SILFunction &, Arguments &, FunctionTest &);
133131

134132
private:
135133
/// The lambda to be run.

0 commit comments

Comments
 (0)