We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0219ecd commit 0fa5ef0Copy full SHA for 0fa5ef0
lib/SILGen/SILGenConvert.cpp
@@ -459,7 +459,7 @@ ManagedValue SILGenFunction::emitExistentialErasure(
459
// If we're erasing to the 'Error' type, we might be able to get an NSError
460
// representation more efficiently.
461
auto &ctx = getASTContext();
462
- if (conformances.size() == 1 &&
+ if (ctx.LangOpts.EnableObjCInterop && conformances.size() == 1 &&
463
conformances[0].getRequirement() == ctx.getErrorDecl() &&
464
ctx.getNSErrorDecl()) {
465
auto nsErrorDecl = ctx.getNSErrorDecl();
0 commit comments