Fix errors and warnings building swift/SILGen on Windows using MSVC

This commit is contained in:
Hugh Bellamy
2016-12-22 11:51:55 +00:00
parent 6805ecccae
commit 95af3aa7c8
9 changed files with 29 additions and 2 deletions

View File

@@ -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) {