Skip to content

Commit 1d8a4cd

Browse files
committed
Tweak comment and assert in refactored code.
1 parent 0b784b1 commit 1d8a4cd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/SILAnalysis/BasicCalleeAnalysis.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ void CalleeCache::computeClassMethodCalleesForClass(ClassDecl *CD) {
8888
bool canCallUnknown = !calleesAreStaticallyKnowable(M, Method);
8989

9090
// Update the callees for this method and all the methods it
91-
// overrides by inserting the call graph node for the function
92-
// that this method invokes.
91+
// overrides by adding this function to their lists.
9392
do {
9493
auto &TheCallees = getOrCreateCalleesForMethod(Method);
9594
assert(TheCallees.getPointer() && "Unexpected null callees!");
@@ -187,7 +186,7 @@ CalleeList CalleeCache::getCalleeListForCalleeKind(SILValue Callee) const {
187186
switch (Callee->getKind()) {
188187
default:
189188
assert(!isa<MethodInst>(Callee) &&
190-
"Unhandled method instruction in call graph construction!");
189+
"Unhandled method instruction in callee determination!");
191190
return CalleeList();
192191

193192
case ValueKind::ThinToThickFunctionInst:

0 commit comments

Comments
 (0)