[clang][bytecode] Ignore CPointerToObjCPointerCasts (#109760)

This commit is contained in:
Timm Baeder 2024-09-24 10:18:33 +02:00 committed by GitHub
parent 3dbd929ea6
commit e4d34261f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -431,6 +431,7 @@ bool Compiler<Emitter>::VisitCastExpr(const CastExpr *CE) {
case CK_NoOp:
case CK_UserDefinedConversion:
case CK_AddressSpaceConversion:
case CK_CPointerToObjCPointerCast:
return this->delegate(SubExpr);
case CK_BitCast: {

View File

@ -10,3 +10,8 @@
//
// CHECK-NEXT: @.str = {{.*}}constant [13 x i8] c"Hello World!\00", section "__TEXT,__cstring,cstring_literals", align 1
id a = @"Hello World!";
extern void OBJC_CLASS_$_f;
Class c = (Class)&OBJC_CLASS_$_f;
// CHECK: @c ={{.*}} global ptr @"OBJC_CLASS_$_f"
// CHECK: @"OBJC_CLASS_$_f" ={{.*}} global %struct._class_t