remove dead argument to canUseScalarCheckedCastInstructions.

Swift SVN r27455
This commit is contained in:
Chris Lattner
2015-04-18 22:12:50 +00:00
parent e45c8defce
commit 7185252a2b
5 changed files with 6 additions and 11 deletions

View File

@@ -1452,8 +1452,7 @@ emitSerialCastOperand(SILGenFunction &SGF, SILLocation loc,
bool requiresAddress = false;
for (auto &row : rows) {
CanType targetType = getTargetType(row);
if (!canUseScalarCheckedCastInstructions(SGF.SGM.M, sourceType,
targetType)) {
if (!canUseScalarCheckedCastInstructions(sourceType, targetType)) {
requiresAddress = true;
break;
}