Skip to content

Commit adbfc75

Browse files
authored
Merge pull request swiftlang#39028 from compnerd/swiftDifferentiationRuntime
Differentiation: correct the storage annotation for runtime functions
2 parents f6f756e + 0a292fd commit adbfc75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/runtime/AutoDiffSupport.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ class AutoDiffLinearMapContext : public HeapObject {
3939
};
4040

4141
/// Creates a linear map context with a tail-allocated top-level subcontext.
42-
SWIFT_EXPORT_FROM(swift_Differentiation) SWIFT_CC(swift)
42+
SWIFT_RUNTIME_EXPORT SWIFT_CC(swift)
4343
AutoDiffLinearMapContext *swift_autoDiffCreateLinearMapContext(
4444
size_t topLevelSubcontextSize);
4545

4646
/// Returns the address of the tail-allocated top-level subcontext.
47-
SWIFT_EXPORT_FROM(swift_Differentiation) SWIFT_CC(swift)
47+
SWIFT_RUNTIME_EXPORT SWIFT_CC(swift)
4848
void *swift_autoDiffProjectTopLevelSubcontext(AutoDiffLinearMapContext *);
4949

5050
/// Allocates memory for a new subcontext.
51-
SWIFT_EXPORT_FROM(swift_Differentiation) SWIFT_CC(swift)
51+
SWIFT_RUNTIME_EXPORT SWIFT_CC(swift)
5252
void *swift_autoDiffAllocateSubcontext(AutoDiffLinearMapContext *, size_t size);
5353

5454
}

0 commit comments

Comments
 (0)