File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -1428,14 +1428,9 @@ llvm::Module *IRGenModule::getModule() const {
1428
1428
}
1429
1429
1430
1430
bool IRGenModule::IsWellKnownBuiltinOrStructralType (CanType T) const {
1431
- static const CanType kStructural [] = {
1432
- Context.TheEmptyTupleType , Context.TheNativeObjectType ,
1433
- Context.TheBridgeObjectType , Context.TheRawPointerType ,
1434
- Context.getAnyObjectType ()
1435
- };
1436
-
1437
- if (std::any_of (std::begin (kStructural ), std::end (kStructural ),
1438
- [T](const CanType &ST) { return T == ST; }))
1431
+ if (T == Context.TheEmptyTupleType || T == Context.TheNativeObjectType ||
1432
+ T == Context.TheBridgeObjectType || T == Context.TheRawPointerType ||
1433
+ T == Context.getAnyObjectType ())
1439
1434
return true ;
1440
1435
1441
1436
if (auto IntTy = dyn_cast<BuiltinIntegerType>(T)) {
You can’t perform that action at this time.
0 commit comments