[PATCH] D99661: [SemaObjC] Fix a -Wbridge-cast false-positive
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 31 15:44:42 PDT 2021
ahatanak added a comment.
I see a warning when I compile the following (contrived) example:
typedef const struct __attribute__((objc_bridge(NSError))) __CFString * CFStringRef;
extern "C" {
typedef const struct __attribute__((objc_bridge(NSString))) __CFString * CFStringRef;
}
@interface NSString @end
@interface NSError @end
void CFStringGetLength(CFStringRef theString);
int main() {
CFStringGetLength((__bridge CFStringRef)(NSString *)0);
}
Should we try to restore the behavior prior to https://reviews.llvm.org/rG09abecef7bbfda18d34f046954eaa4d491062839 as much as we can? Or that's not important?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99661/new/
https://reviews.llvm.org/D99661
More information about the cfe-commits
mailing list