Skip to content

Commit 64b891d

Browse files
committed
[Runtime] Add missing cast.
Apparently we're missing a cast in `_swift_initRuntimePath()`. Previously this code was accidentally not being used, which is why we hadn't noticed it. rdar://131294724
1 parent a8f68aa commit 64b891d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/runtime/Paths.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@ _swift_tryAuxExePath(const char *name, const char *path, ...)
532532
void
533533
_swift_initRuntimePath(void *) {
534534
#if APPLE_OS_SYSTEM
535-
const char *path = dyld_image_path_containing_address(_swift_initRuntimePath);
535+
const char *path =
536+
dyld_image_path_containing_address((const void *)_swift_initRuntimePath);
536537

537538
// No need to ::strdup() this, as the return value is guaranteed to remain
538539
// valid as long as the library is loaded.

0 commit comments

Comments
 (0)