Skip to content

Commit 960226b

Browse files
Revert "[WASM] Define and declare swift_isClassType as swiftcc because it got to be called from swift"
This reverts commit 575710d.
1 parent ad20d11 commit 960226b

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
@@ -1492,7 +1492,7 @@ FUNCTION(ConformsToProtocol,
14921492

14931493
// bool swift_isClassType(type*);
14941494
FUNCTION(IsClassType,
1495-
swift_isClassType, SwiftCC, AlwaysAvailable,
1495+
swift_isClassType, C_CC, AlwaysAvailable,
14961496
RETURNS(Int1Ty),
14971497
ARGS(TypeMetadataPtrTy),
14981498
ATTRS(ZExt, NoUnwind, ReadNone, WillReturn),

stdlib/public/runtime/Casting.cpp

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

16011601
// Called by compiler-generated cast code.
1602-
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_API
1602+
SWIFT_RUNTIME_STDLIB_API
16031603
bool swift_isClassType(const Metadata *type) {
16041604
return Metadata::isAnyKindOfClass(type->getKind());
16051605
}

0 commit comments

Comments
 (0)