mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Support the explicit representation of self-conformances.
Big, but actually NFC because we're never actually creating them.
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/MD5.h"
|
||||
|
||||
#include "ConformanceDescription.h"
|
||||
#include "GenEnum.h"
|
||||
#include "GenIntegerLiteral.h"
|
||||
#include "GenType.h"
|
||||
@@ -739,7 +740,7 @@ bool IRGenerator::canEmitWitnessTableLazily(SILWitnessTable *wt) {
|
||||
return true;
|
||||
|
||||
NominalTypeDecl *ConformingTy =
|
||||
wt->getConformance()->getType()->getNominalOrBoundGenericNominal();
|
||||
wt->getConformingType()->getNominalOrBoundGenericNominal();
|
||||
|
||||
switch (ConformingTy->getEffectiveAccess()) {
|
||||
case AccessLevel::Private:
|
||||
|
||||
Reference in New Issue
Block a user