Skip to content

Commit 575710d

Browse files
[WASM] Define and declare swift_isClassType as swiftcc because it got to be called from swift
1 parent 36d89a2 commit 575710d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/Runtime/RuntimeFunctions.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ FUNCTION(ConformsToProtocol,
12041204

12051205
// bool swift_isClassType(type*);
12061206
FUNCTION(IsClassType,
1207-
swift_isClassType, C_CC, AlwaysAvailable,
1207+
swift_isClassType, SwiftCC, AlwaysAvailable,
12081208
RETURNS(Int1Ty),
12091209
ARGS(TypeMetadataPtrTy),
12101210
ATTRS(ZExt, NoUnwind, ReadNone))

stdlib/public/runtime/Casting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3199,7 +3199,7 @@ const Metadata *swift::_swift_class_getSuperclass(const Metadata *theClass) {
31993199
}
32003200

32013201
// Called by compiler-generated cast code.
3202-
SWIFT_RUNTIME_STDLIB_API
3202+
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_API
32033203
bool swift_isClassType(const Metadata *type) {
32043204
return Metadata::isAnyKindOfClass(type->getKind());
32053205
}

0 commit comments

Comments
 (0)