mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 03:16:07 +00:00
[clang][bytecode] Ignore CPointerToObjCPointerCasts (#109760)
This commit is contained in:
parent
3dbd929ea6
commit
e4d34261f8
@ -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: {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user