mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix build
This commit is contained in:
@@ -319,8 +319,7 @@ struct BridgedDeclObj {
|
||||
#endif
|
||||
|
||||
BridgedDeclObj(SwiftObject obj) : obj(obj) {}
|
||||
BridgedDeclObj(BridgedDecl decl)
|
||||
: obj(static_cast<SwiftObject>(decl.unbridged())) {}
|
||||
BRIDGED_INLINE BridgedDeclObj(BridgedDecl decl);
|
||||
BridgedOwnedString getDebugDescription() const;
|
||||
BRIDGED_INLINE swift::SourceLoc getLoc() const;
|
||||
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedDeclObj getModuleContext() const;
|
||||
|
||||
@@ -165,6 +165,9 @@ BridgedFileUnit_castToSourceFile(BridgedFileUnit fileUnit) {
|
||||
// MARK: BridgedDeclObj
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
BridgedDeclObj::BridgedDeclObj(BridgedDecl decl)
|
||||
: obj(static_cast<SwiftObject>(decl.unbridged())) {}
|
||||
|
||||
swift::SourceLoc BridgedDeclObj::getLoc() const {
|
||||
return unbridged()->getLoc();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user