File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -570,9 +570,11 @@ OperandOwnershipKindClassifier::visitFullApply(FullApplySite apply) {
570
570
return Map::allLive ();
571
571
}
572
572
573
- // If we have a type dependent operand, return an empty map.
574
- if (apply.getInstruction ()->isTypeDependentOperand (op))
575
- return Map ();
573
+ // We should have early exited if we saw a type dependent operand, so we
574
+ // should never hit this.
575
+ //
576
+ // Lets just assert to be careful though.
577
+ assert (!apply.getInstruction ()->isTypeDependentOperand (op));
576
578
577
579
unsigned argIndex = apply.getCalleeArgIndex (op);
578
580
auto conv = apply.getSubstCalleeConv ();
@@ -972,6 +974,8 @@ OperandOwnershipKindClassifier::visitBuiltinInst(BuiltinInst *bi) {
972
974
// ===----------------------------------------------------------------------===//
973
975
974
976
OperandOwnershipKindMap Operand::getOwnershipKindMap () const {
977
+ if (isTypeDependent ())
978
+ return OperandOwnershipKindMap ();
975
979
OperandOwnershipKindClassifier classifier (getUser ()->getModule (), *this );
976
980
return classifier.visit (const_cast <SILInstruction *>(getUser ()));
977
981
}
You can’t perform that action at this time.
0 commit comments