Skip to content

Commit a854550

Browse files
committed
[interop] fix test failure after c4cc9e8
rdar://107445101
1 parent c4cc9e8 commit a854550

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/PrintAsClang/PrintAsClang.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ static void writePtrauthPrologue(raw_ostream &os) {
6767
os << "# ifndef __ptrauth_swift_value_witness_function_pointer\n";
6868
os << "# define __ptrauth_swift_value_witness_function_pointer(x)\n";
6969
os << "# endif\n";
70+
os << "# ifndef __ptrauth_swift_class_method_pointer\n";
71+
os << "# define __ptrauth_swift_class_method_pointer(x)\n";
72+
os << "# endif\n";
7073
});
7174
os << "#endif\n";
7275
});

test/PrintAsCxx/empty.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
// CHECK-NEXT: # ifndef __ptrauth_swift_value_witness_function_pointer
4848
// CHECK-NEXT: # define __ptrauth_swift_value_witness_function_pointer(x)
4949
// CHECK-NEXT: # endif
50+
// CHECK-NEXT: # ifndef __ptrauth_swift_class_method_pointer
51+
// CHECK-NEXT: # define __ptrauth_swift_class_method_pointer(x)
52+
// CHECK-NEXT: # endif
5053
// CHECK-NEXT: #pragma clang diagnostic pop
5154
// CHECK-NEXT: #endif
5255
// CHECK-NEXT: #endif

0 commit comments

Comments
 (0)