mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix errors and warnings building swift/SILGen on Windows using MSVC
This commit is contained in:
@@ -2788,6 +2788,8 @@ getWitnessFunctionType(SILGenModule &SGM,
|
||||
case WitnessDispatchKind::Class:
|
||||
return SGM.Types.getConstantOverrideType(witness);
|
||||
}
|
||||
|
||||
llvm_unreachable("Unhandled WitnessDispatchKind in switch.");
|
||||
}
|
||||
|
||||
static SILValue
|
||||
@@ -2808,6 +2810,8 @@ getWitnessFunctionRef(SILGenFunction &gen,
|
||||
SILValue selfPtr = witnessParams.back().getValue();
|
||||
return gen.B.createClassMethod(loc, selfPtr, witness);
|
||||
}
|
||||
|
||||
llvm_unreachable("Unhandled WitnessDispatchKind in switch.");
|
||||
}
|
||||
|
||||
static CanType dropLastElement(CanType type) {
|
||||
|
||||
Reference in New Issue
Block a user