Skip to content

Commit 29c01d4

Browse files
Use __builtin_return_address instead of __builtin_frame_address
We accidentally changed it to `__builtin_frame_address` in 7f38264 but we should keep it as `__builtin_return_address` as it was before.
1 parent a7722f4 commit 29c01d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CoreFoundation/CFBundle.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ CFBundleRef CFBundleGetBundleWithIdentifier(CFStringRef bundleID) {
600600
#if TARGET_OS_WASI
601601
hint = NULL;
602602
#else
603-
hint = __builtin_frame_address(0);
603+
hint = __builtin_return_address(0);
604604
#endif
605605
return _CFBundleGetBundleWithIdentifier(bundleID, hint);
606606
}

0 commit comments

Comments
 (0)