Skip to content

Commit 3f6751a

Browse files
committed
Add SWIFT_IMPORT_UNSAFE to new SIL bridging
1 parent 972a69f commit 3f6751a

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

include/swift/SIL/SILBridging.h

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ struct BridgedNominalTypeDecl {
143143
struct BridgedVarDecl {
144144
const swift::VarDecl * _Nonnull decl;
145145

146-
BRIDGED_INLINE BridgedStringRef getUserFacingName() const;
146+
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedStringRef getUserFacingName() const;
147147
};
148148

149149
struct OptionalBridgedVarDecl {
@@ -464,7 +464,7 @@ struct BridgedLocation {
464464
BRIDGED_INLINE bool hasValidLineNumber() const;
465465
BRIDGED_INLINE bool isAutoGenerated() const;
466466
BRIDGED_INLINE bool isEqualTo(BridgedLocation rhs) const;
467-
BRIDGED_INLINE BridgedSourceLoc getSourceLocation() const;
467+
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedSourceLoc getSourceLocation() const;
468468
BRIDGED_INLINE bool hasSameSourceLocation(BridgedLocation rhs) const;
469469
static BRIDGED_INLINE BridgedLocation getArtificialUnreachableLocation();
470470
};
@@ -651,15 +651,20 @@ struct BridgedInstruction {
651651
// VarDeclInst and DebugVariableInst
652652
// =========================================================================//
653653

654-
BRIDGED_INLINE OptionalBridgedVarDecl DebugValue_getDecl() const;
654+
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE OptionalBridgedVarDecl
655+
DebugValue_getDecl() const;
655656

656-
BRIDGED_INLINE OptionalBridgedVarDecl AllocStack_getDecl() const;
657+
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE OptionalBridgedVarDecl
658+
AllocStack_getDecl() const;
657659

658-
BRIDGED_INLINE OptionalBridgedVarDecl AllocBox_getDecl() const;
660+
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE OptionalBridgedVarDecl
661+
AllocBox_getDecl() const;
659662

660-
BRIDGED_INLINE OptionalBridgedVarDecl GlobalAddr_getDecl() const;
663+
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE OptionalBridgedVarDecl
664+
GlobalAddr_getDecl() const;
661665

662-
BRIDGED_INLINE OptionalBridgedVarDecl RefElementAddr_getDecl() const;
666+
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE OptionalBridgedVarDecl
667+
RefElementAddr_getDecl() const;
663668

664669
BRIDGED_INLINE OptionalBridgedSILDebugVariable DebugValue_getVarInfo() const;
665670

0 commit comments

Comments
 (0)