Skip to content

Commit f6fb3c7

Browse files
committed
SILInstructions.h: fix ApplyInstBase::getSingleResult()
1 parent c078b76 commit f6fb3c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SIL/SILInstruction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2789,7 +2789,7 @@ class ApplyInstBase<Impl, Base, true>
27892789

27902790
Optional<SILResultInfo> getSingleResult() const {
27912791
auto SubstCallee = getSubstCalleeType();
2792-
if (SubstCallee->getNumAllResults() != 1)
2792+
if (SubstCallee->getNumResults() != 1)
27932793
return None;
27942794
return SubstCallee->getSingleResult();
27952795
}

0 commit comments

Comments
 (0)