Skip to content

Commit cb31700

Browse files
Renaming testErrorCall to getErrorMetadata
1 parent dced1ca commit cb31700

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/PrintAsClang/_SwiftCxxInteroperability.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ struct SymbolicP {
217217
uint8_t _4;
218218
} __attribute__((packed));
219219

220-
inline const void *_Nullable testErrorCall() {
220+
inline const void *_Nullable getErrorMetadata() {
221221
static swift::SymbolicP errorSymbol;
222222
static int *_Nonnull got_ss5ErrorMp = &$ss5ErrorMp;
223223
errorSymbol._1 = 2;
@@ -257,7 +257,7 @@ class Error {
257257
template<class T>
258258
T as() {
259259
alignas(alignof(T)) char buffer[sizeof(T)];
260-
const void *em = testErrorCall();
260+
const void *em = getErrorMetadata();
261261
void *ep = getPointerToOpaquePointer();
262262
auto metadata = swift::TypeMetadataTrait<T>::getTypeMetadata();
263263

0 commit comments

Comments
 (0)