@@ -124,7 +124,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, Function) {
124
124
b.Node (Node::Kind::ReturnType,
125
125
b.Node (Node::Kind::Type, b.Node (Node::Kind::Tuple)))));
126
126
CompilerType void_void = GetCompilerType (b.Mangle (n));
127
- ASSERT_TRUE (void_void.IsFunctionType (nullptr ));
127
+ ASSERT_TRUE (void_void.IsFunctionType ());
128
128
ASSERT_TRUE (void_void.IsFunctionPointerType ());
129
129
ASSERT_EQ (void_void.GetNumberOfFunctionArguments (), 0UL );
130
130
}
@@ -133,7 +133,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, Function) {
133
133
b.Node (Node::Kind::ImplFunctionType, b.Node (Node::Kind::ImplEscaping),
134
134
b.Node (Node::Kind::ImplConvention, " @callee_guaranteed" )));
135
135
CompilerType impl_void_void = GetCompilerType (b.Mangle (n));
136
- ASSERT_TRUE (impl_void_void.IsFunctionType (nullptr ));
136
+ ASSERT_TRUE (impl_void_void.IsFunctionType ());
137
137
ASSERT_EQ (impl_void_void.GetNumberOfFunctionArguments (), 0UL );
138
138
}
139
139
{
@@ -146,7 +146,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, Function) {
146
146
b.Node (Node::Kind::ImplConvention, " @unowned" ),
147
147
b.Node (Node::Kind::Tuple))));
148
148
CompilerType impl_two_args = GetCompilerType (b.Mangle (n));
149
- ASSERT_TRUE (impl_two_args.IsFunctionType (nullptr ));
149
+ ASSERT_TRUE (impl_two_args.IsFunctionType ());
150
150
ASSERT_EQ (impl_two_args.GetNumberOfFunctionArguments (), 2UL );
151
151
ASSERT_EQ (impl_two_args.GetFunctionArgumentAtIndex (0 ), int_type);
152
152
ASSERT_EQ (impl_two_args.GetFunctionArgumentAtIndex (1 ), void_type);
@@ -166,7 +166,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, Function) {
166
166
b.Node (Node::Kind::ReturnType,
167
167
b.Node (Node::Kind::Type, b.Node (Node::Kind::Tuple)))));
168
168
CompilerType two_args = GetCompilerType (b.Mangle (n));
169
- ASSERT_TRUE (two_args.IsFunctionType (nullptr ));
169
+ ASSERT_TRUE (two_args.IsFunctionType ());
170
170
ASSERT_EQ (two_args.GetNumberOfFunctionArguments (), 2UL );
171
171
ASSERT_EQ (two_args.GetFunctionArgumentAtIndex (0 ), int_type);
172
172
ASSERT_EQ (two_args.GetFunctionArgumentAtIndex (1 ), void_type);
@@ -181,7 +181,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, Function) {
181
181
b.Node (Node::Kind::Type, b.Node (Node::Kind::Tuple))),
182
182
b.Node (Node::Kind::ReturnType, b.Node (Node::Kind::Type, b.IntType ()))));
183
183
CompilerType void_int = GetCompilerType (b.Mangle (n));
184
- ASSERT_TRUE (void_int.IsFunctionType (nullptr ));
184
+ ASSERT_TRUE (void_int.IsFunctionType ());
185
185
ASSERT_EQ (void_int.GetFunctionReturnType (), int_type);
186
186
}
187
187
{
@@ -191,7 +191,7 @@ TEST_F(TestTypeSystemSwiftTypeRef, Function) {
191
191
b.Node (Node::Kind::ImplResult,
192
192
b.Node (Node::Kind::ImplConvention, " @unowned" ), b.IntType ())));
193
193
CompilerType impl_void_int = GetCompilerType (b.Mangle (n));
194
- ASSERT_TRUE (impl_void_int.IsFunctionType (nullptr ));
194
+ ASSERT_TRUE (impl_void_int.IsFunctionType ());
195
195
ASSERT_EQ (impl_void_int.GetFunctionReturnType (), int_type);
196
196
}
197
197
}
0 commit comments