File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
stdlib/public/SDK/Foundation Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
#include " swift/Runtime/Metadata.h"
6
6
7
- // Aliases for Objective-C runtime entry points.
8
- static const char *class_getName (const swift::ClassMetadata* type) {
9
- return class_getName (
10
- reinterpret_cast <Class >(const_cast <swift::ClassMetadata*>(type)));
11
- }
12
-
13
7
@interface NSKeyedUnarchiver (SwiftAdditions)
14
8
+ (int )_swift_checkClassAndWarnForKeyedArchiving : (Class )cls
15
9
operation : (int )operation
@@ -44,7 +38,7 @@ + (int)_swift_checkClassAndWarnForKeyedArchiving:(Class)cls
44
38
return 0 ;
45
39
46
40
// Is it a mangled name?
47
- const char *className = class_getName (theClass );
41
+ const char *className = class_getName (cls );
48
42
if (!(className[0 ] == ' _' && className[1 ] == ' T' ))
49
43
return 0 ;
50
44
// Is it a name in the form <module>.<class>? Note: the module name could
You can’t perform that action at this time.
0 commit comments