Skip to content

Commit 96d09d2

Browse files
committed
Do not abort on double-registration of SIL class. Instead do nothing.
1 parent b860c17 commit 96d09d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SIL/Utils/SILBridging.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ void registerBridgedClass(BridgedStringRef bridgedClassName, SwiftMetatype metat
110110
SILNodeKind kind = iter->second;
111111
SwiftMetatype existingTy = nodeMetatypes[(unsigned)kind];
112112
if (existingTy) {
113-
llvm::errs() << "Double registration of class " << className << '\n';
114-
abort();
113+
// We have already registered this class
114+
return;
115115
}
116116
nodeMetatypes[(unsigned)kind] = metatype;
117117
}

0 commit comments

Comments
 (0)