Skip to content

Commit c0935fc

Browse files
committed
Fix build
1 parent a172134 commit c0935fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/swift/AST/ASTBridging.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class AvailabilityDomainOrIdentifier;
4545
class Argument;
4646
class ASTContext;
4747
struct ASTNode;
48+
class CanGenericSignature;
4849
struct CaptureListEntry;
4950
class DeclAttributes;
5051
class DeclBaseName;
@@ -318,7 +319,8 @@ struct BridgedDeclObj {
318319
#endif
319320

320321
BridgedDeclObj(SwiftObject obj) : obj(obj) {}
321-
BridgedDeclObj(BridgedDecl decl) : obj(decl.unbridged()) {}
322+
BridgedDeclObj(BridgedDecl decl)
323+
: obj(static_cast<SwiftObject>(decl.unbridged())) {}
322324
BridgedOwnedString getDebugDescription() const;
323325
BRIDGED_INLINE swift::SourceLoc getLoc() const;
324326
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedDeclObj getModuleContext() const;

0 commit comments

Comments
 (0)