File tree Expand file tree Collapse file tree 2 files changed +395
-7
lines changed Expand file tree Collapse file tree 2 files changed +395
-7
lines changed Original file line number Diff line number Diff line change @@ -677,8 +677,6 @@ bool StringConcatenationOptimizer::extractStringConcatOperands() {
677
677
if (AI->getNumArguments () != 3 || !Fn->hasSemanticsAttr (" string.concat" ))
678
678
return false ;
679
679
680
- assert (Fn->getRepresentation () == SILFunctionTypeRepresentation::Method);
681
-
682
680
// Left and right operands of a string concatenation operation.
683
681
AILeft = dyn_cast<ApplyInst>(AI->getOperand (1 ));
684
682
AIRight = dyn_cast<ApplyInst>(AI->getOperand (2 ));
@@ -719,11 +717,6 @@ bool StringConcatenationOptimizer::extractStringConcatOperands() {
719
717
AIRightOperandsNum == 5 )))
720
718
return false ;
721
719
722
- assert (FRILeftFun->getRepresentation () ==
723
- SILFunctionTypeRepresentation::Method);
724
- assert (FRIRightFun->getRepresentation () ==
725
- SILFunctionTypeRepresentation::Method);
726
-
727
720
SLILeft = dyn_cast<StringLiteralInst>(AILeft->getOperand (1 ));
728
721
SLIRight = dyn_cast<StringLiteralInst>(AIRight->getOperand (1 ));
729
722
You can’t perform that action at this time.
0 commit comments