Skip to content

Commit 63d94c8

Browse files
kateinoigakukunMaxDesiatov
authored andcommitted
[WASM] Define and declare swift_isClassType as swiftcc because it got to be called from swift
1 parent 903fc2b commit 63d94c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/Runtime/RuntimeFunctions.def

+1-1
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ FUNCTION(ConformsToProtocol,
11721172

11731173
// bool swift_isClassType(type*);
11741174
FUNCTION(IsClassType,
1175-
swift_isClassType, C_CC, AlwaysAvailable,
1175+
swift_isClassType, SwiftCC, AlwaysAvailable,
11761176
RETURNS(Int1Ty),
11771177
ARGS(TypeMetadataPtrTy),
11781178
ATTRS(ZExt, NoUnwind, ReadNone))

stdlib/public/runtime/Casting.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3205,7 +3205,7 @@ const Metadata *swift::_swift_class_getSuperclass(const Metadata *theClass) {
32053205
}
32063206

32073207
// Called by compiler-generated cast code.
3208-
SWIFT_RUNTIME_STDLIB_API
3208+
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_API
32093209
bool swift_isClassType(const Metadata *type) {
32103210
return Metadata::isAnyKindOfClass(type->getKind());
32113211
}

0 commit comments

Comments
 (0)