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.
2 parents 3f91c30 + 0fa5ef0 commit 1fe3f9fCopy full SHA for 1fe3f9f
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